RyanWall
7 years agoQrew Member
A formula URL Button to check a box and Update a Date Field
Hi,
I am creating an application to track the progress of a customers onboarding. At the bottom of my form I have a button to check a box and mark the customer as successful or unsuccessfully onboarded. I have a Form rule set up so that when the checkbox is ticked - it updates a hidden date field, allowing me to calculate how long the process has taken.
I noticed when I check the box by clicking it, this works seamlessly, however when I check the box by clicking the button - the form rule does not seem to work and the date field does not update.
The end users will not see the checkbox, only the button.
Is there a way around this - potentially building in a function to the button that will update the date field with the current date?
Thanks for your help!
Current Button Formula:
If([Unsuccessful Onboarding Checkbox] = false,
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=65m6uecaabu4w5qz7dbnim3jy" &
"&_fid_72=1" &
"&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() &
"?a=er&rid=" & [Record ID#]),
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=65m6uecaabu4w5qz7dbnim3jy" &
"&_fid_72=0" &
"&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() &
"?a=er&rid=" & [Record ID#]))
I am creating an application to track the progress of a customers onboarding. At the bottom of my form I have a button to check a box and mark the customer as successful or unsuccessfully onboarded. I have a Form rule set up so that when the checkbox is ticked - it updates a hidden date field, allowing me to calculate how long the process has taken.
I noticed when I check the box by clicking it, this works seamlessly, however when I check the box by clicking the button - the form rule does not seem to work and the date field does not update.
The end users will not see the checkbox, only the button.
Is there a way around this - potentially building in a function to the button that will update the date field with the current date?
Thanks for your help!
Current Button Formula:
If([Unsuccessful Onboarding Checkbox] = false,
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=65m6uecaabu4w5qz7dbnim3jy" &
"&_fid_72=1" &
"&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() &
"?a=er&rid=" & [Record ID#]),
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=65m6uecaabu4w5qz7dbnim3jy" &
"&_fid_72=0" &
"&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() &
"?a=er&rid=" & [Record ID#]))