Forum Discussion
MarkShnier__You
Qrew Legend
3 years agoCan 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
------------------------------
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------
VictoriaClark
3 years agoQrew Member
Thank 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
------------------------------
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
------------------------------- VictoriaClark3 years agoQrew MemberHi Mark,
Thank you for replying!
Original Message:
Sent: 05-22-2022 08:29
From: Mark Shnier (YQC)
Subject: Upload Multiple File Attachments to QuickBase
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- Curtis_M2 years agoQrew Cadet
Hi all,
Has an updated version of this code been created so that it works on the new forms?
Thank you
------------------------------
Curtis Middleton
------------------------------