MannyPinheiro1
6 years agoQrew Trainee
How to store values collected in a javascript prompt in a field
I created an app to allow customers to open trouble tickets.
Analysts review customer tickets and have the ability to assign the tickets to themselves using a magic button (f-rich text).
Here's the formula I use:
var text DisplayParent = URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#];
If([Unassigned] = true,
"<a href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=cfc8kgqbwxd4ydd3vsabj8vdcbe&_fid_82=1&_fid_41=In-Progress&_fid_22=" & URLEncode(User()) &
"&rdr=" & URLRoot() & "db/" & [_DBID_CASES] & "'><img src=\"https://images.quickbase.com/si/32/060-folder_out.png\"></a>")
I have created a Managers Dashboard and I'd like to create a new Button - when pressed by the manager he/she can select users (from an existing field) to assign the case to.
I was thinking of adding a JavaScript Prompt, then take the selected/entered value and update to update the user field - thus assigning the case.
"javascript:prompt ('Who do you want to assign?')"
Any ideas?
------------------------------
Manny Pinheiro
------------------------------
Analysts review customer tickets and have the ability to assign the tickets to themselves using a magic button (f-rich text).
Here's the formula I use:
var text DisplayParent = URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#];
If([Unassigned] = true,
"<a href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=cfc8kgqbwxd4ydd3vsabj8vdcbe&_fid_82=1&_fid_41=In-Progress&_fid_22=" & URLEncode(User()) &
"&rdr=" & URLRoot() & "db/" & [_DBID_CASES] & "'><img src=\"https://images.quickbase.com/si/32/060-folder_out.png\"></a>")
I have created a Managers Dashboard and I'd like to create a new Button - when pressed by the manager he/she can select users (from an existing field) to assign the case to.
I was thinking of adding a JavaScript Prompt, then take the selected/entered value and update to update the user field - thus assigning the case.
"javascript:prompt ('Who do you want to assign?')"
Any ideas?
------------------------------
Manny Pinheiro
------------------------------