PaulStreit
5 years agoQrew Member
Conditional formula-URL fields
I have a long string of code in a formula-URL field that results in a URL that is too long for the browser to execute (I verified this). So I want to break the code up into two fields, where part of the processing is done in the first field plus a checkbox field is set to trigger the second formula-URL field. But for whatever reason the second field does not recognize when the checkbox is set.
The code in the first formula URL field works and properly sets the checkbox field named "Trigger" and then redirects to the app's home page to avoid the standard QB response message to a successful operation. The code for the second formula-URL field is listed below. Any idea why this doesn't work? To be clear, after the redirection back to the home page I verified that the checkbox is set, so I know that the code inside the If statement did not execute since otherwise it would be set to "false". Thank you for any insight and how to fix this. I must be missing something.
Paul Streit
----------------------------------------------
var text setCheckBox = URLRoot() &"db/" & [_DBID_TEST] & "?a=API_EditRecord&rid=1&_fid_8=" & URLEncode(false);
var text reDirect = URLRoot() &"db/" & Dbid() & "?a-dbpage&pageID=101";
If(,
$setCheckBox & "&rdr=" & $reDirect,
$reDirect
)
------------------------------
Paul Streit
------------------------------
The code in the first formula URL field works and properly sets the checkbox field named "Trigger" and then redirects to the app's home page to avoid the standard QB response message to a successful operation. The code for the second formula-URL field is listed below. Any idea why this doesn't work? To be clear, after the redirection back to the home page I verified that the checkbox is set, so I know that the code inside the If statement did not execute since otherwise it would be set to "false". Thank you for any insight and how to fix this. I must be missing something.
Paul Streit
----------------------------------------------
var text setCheckBox = URLRoot() &"db/" & [_DBID_TEST] & "?a=API_EditRecord&rid=1&_fid_8=" & URLEncode(false);
var text reDirect = URLRoot() &"db/" & Dbid() & "?a-dbpage&pageID=101";
If(,
$setCheckBox & "&rdr=" & $reDirect,
$reDirect
)
------------------------------
Paul Streit
------------------------------