Not able to add template for the upload control to Quick Approve

Comments

4 comments

  • Avatar
    Prajakta

    An Upload control's template value will not return links to uploaded documents. You will have to use a business rule like the one in this example to show links in a Message control. Then use the template value of that Message control in the Quick Approval. 

    0
    Comment actions Permalink
  • Avatar
    Mike Griffith

    So i've got this far, but havn't figured out how to get the actual filename that was uploaded where "Link" is in the code.

    haveuploads.value = "<a href='" + baseUrl + "/attachment/"+SupportingDocuments.value+"/does_not_matter' target=_blank>" + "Link</a>";

    0
    Comment actions Permalink
  • Avatar
    Prajakta

    It is not possible to get the name of uploaded files in business rules. However, you can change the file name of an uploaded attachment in the form. Please see this documentation. If you name the uploaded files using the File Name property, then you can use that same name while creating links in the business rule.

    0
    Comment actions Permalink
  • Avatar
    Mike Griffith (Edited )

    Hmm, trying to replicate but no luck.  Can you give me a simple example?  ie. Set upload control File Name to what  Set haveuploads.value = what .  Just trying to get that to show a filename of any kind right now.

     

    Fyi. haveuploads is my message control

    0
    Comment actions Permalink

Please sign in to leave a comment.