ArchiveUser
9 years agoQrew Captain
automatically edit record after copyMasterDetail
So in a single form I have two fields worth mentioning.
a formula checkbox watching for "copy of" to appear it is true when present. and if opened in edit while true a rule will clear that field
and another formula text that contains this:
a formula checkbox watching for "copy of" to appear it is true when present. and if opened in edit while true a rule will clear that field
and another formula text that contains this:
var text base = URLRoot() & "db/" & Dbid();the second part of the button is currently a failsafe incase they back out of the record before saving. How would i modify this further to include a redirect to the edit record $eAPI Or set up a script to hijack the browser to redirect based on [Clone Tigger] true value by replacing $unl
var text eAPI = $base & "?a=er&rid=" & [Record ID#]&"&ticket=" & [Ticket] & "&apptoken=" & [Token];
var text cJS="javascript:void(copyMasterDetailButtonHandler('&relfids=192,194,250©Fid=327&destrid=0&sourcerid=" & [Record ID#] & "','"& Dbid()&"'))";
var text cop = "<a id='userButton' class='Vibrant Primary' href=\"" & $cJS &"\">Copy Detailed Quote</a>";
var text unl = "<a id='userButton' class='Vibrant Danger' href=" &$eAPI &"\">Unlock and edit this Quote</a>";
var text InnerText=
If([Clone Trigger]=true,$unl,$cop);
$InnerText