StephenStephen
8 years agoQrew Assistant Captain
Button to check a field and save the record (Submit button)
I want to put a "submit" button on my form that allows for:
1. A checkbox field to be checked [Invoice Submitted]
2. The record to be saved
3. It must work whether or not it's a new record or one that has been saved before.
4. I was using a formula-text but formula-URL is fine that that's what I should be doing.
I was trying to get it to update the field and save the record, but the code doesn't work, I believe because it has to be saved first
1. A checkbox field to be checked [Invoice Submitted]
2. The record to be saved
3. It must work whether or not it's a new record or one that has been saved before.
4. I was using a formula-text but formula-URL is fine that that's what I should be doing.
I was trying to get it to update the field and save the record, but the code doesn't work, I believe because it has to be saved first
var text Update=URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & ToText([Record ID#]) & "&_fid_20=1"& "&apptoken= *********"; "<a id='saveButton' class='Vibrant Success' onclick='DoSaveAdd()' href='#'>Submit Invoice</a>"