Forum Discussion
VictoriaClark
3 years agoQrew Member
Good evening,
How do you get the Multiple file button to display at the top? I already added the script but this section does not appear.
Thank you,
Victoria
------------------------------
Victoria Clark
------------------------------
How do you get the Multiple file button to display at the top? I already added the script but this section does not appear.
Thank you,
Victoria
------------------------------
Victoria Clark
------------------------------
- MarkShnier__You3 years ago
Qrew Legend
Can you help me understand the question. Did you make the button field and put it on your form?
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------- VictoriaClark3 years agoQrew MemberThank you for reaching out. That is what I am looking for, how to create a button field.
I followed the video posted by Mr. Trachy, copied the script, added it to the pages section in my project, and updated the 3 items. But I am not seeing the button/tab to be able to select "Multiple Documents".
------------------------------
Victoria Clark
------------------------------- MarkShnier__You3 years ago
Qrew Legend
Here is a working example of the formula URL button which works with the script which is stored in page ID = 4. Did you put this field on our form?
var text URL = URLRoot() & "db/"&Dbid() & "?a=dbpage&pageID=4&refFid=7&rid=" & [Record ID#]
& "&fileattachment=36"
& "&attachmenttableurl=" & URLRoot() & "db/" & [_DBID_EXPENSE_FORM_LINES];
If(IsNull([Date Submitted and Locked]), $URL)
// NOTE: We have updated the button so you only need to update this button's code.
// If you are looking at the video it may suggest you edit the UploadMultipleDocuments.html page but we have updated the button so all changes and updates can be made here and passed down into the page.
// First copy the UploadMultipleDocuments.html file located in this app's "Pages" and add it to your new application's "Pages". Make note of your page's new pageID.
// Then edit the above code to reflect the following updates:
// The pageID number of your UploadMultipleDocuments.html page.
// The refFid number to reflect the related reference field's fid.
// Your application's app token.
// The fid of your destination file attachment field.
// The table alias of the destination table where you are placing the file attachments.
//
// All these values will be passed to the UploadMultipleDocuments.html page when you press the button.
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------