ArunPrasanth
12 years agoQrew Trainee
Javascript Prompt + Edit record for Decline button
I am trying to figure out , a way to combine the url formula button in quickbase with a Javascript Prompt and the data entered to be automatically be entered into the text field using api-edit record function.
Combining API-Edit record with Javascript with Url button.
I have created the code separately, but I cant combine them into the button.
Code for edit:
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=xxxxxxxx&rid=" & [Record ID#]
& "&_fid_13=has denied this request." - to be replaced with JavaScript input variable
& "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?act=dr&rid=" & [Record ID#])
Code for JavaScript Prompt
"javascript:var a = prompt('Enter your reason: ', '')"
Thank you