AndreonnaGarret
8 years agoQrew Assistant Captain
URL button that checks a box and prompts to fill in another field
I need to be able to have a formula button that will make some updates from a report page. The button will be used to decline a record. So the user will click it to decline, and then I would like a prompt of sorts that will have them enter a note. I don't want it to leave the report page. Simply check a box (which will be hidden) and then prompt for a note.
I have the code to check the box as of now. I just need an adjustment to get the prompt to enter a note. Here is what I have so far.
var text url =
If([ED Fix]=false,
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=cp2kg3vbugcf22bd656gmp4udhs" &
"&_fid_48=true");
If([ED Fix]=false,
"<a class=\"Vibrant Danger\" href=\"javascript:" & "$.get('" & $url &
"', function(){" & "location.reload();" & "});" &
"void(0);\">Incorrect</a>"
)
Any suggestions? Thanks!
I have the code to check the box as of now. I just need an adjustment to get the prompt to enter a note. Here is what I have so far.
var text url =
If([ED Fix]=false,
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=cp2kg3vbugcf22bd656gmp4udhs" &
"&_fid_48=true");
If([ED Fix]=false,
"<a class=\"Vibrant Danger\" href=\"javascript:" & "$.get('" & $url &
"', function(){" & "location.reload();" & "});" &
"void(0);\">Incorrect</a>"
)
Any suggestions? Thanks!