Forum Discussion
QuickBaseCoachD
10 years agoQrew Captain
Benjamin,
This is not tested but might work
I got this code from Xavier fan, another QSP who is active on this forum
The URL would look something like this:
var text Choice = ToText([My Multi-Select field];
var text DummyURL = and insert code to edit a dummy checkbox field to be = 1;
var text CMDOne = and insert the URL that does the CopyMasterDetail number One;
var text CMDTwo = and insert the URL that does the CopyMasterDetail number Two'
var text CMDThirteen = and insert the URL that does the CopyMasterDetail number Thirteen;
var text URLOne = if(Contains($Choice,"Cats"), $CMDOne, $DummyURL);
var text URLOne = if(Contains($Choice,"Dogs"), $CMDTwo, $DummyURL);
...
var text URLThirteen = if(Contains($Choice,"Parrots"), $CMDThirteen, $DummyURL);
"javascript:" &
"$.get('" &
$URLOne &
"').then(function(){" &
"$.get('" &
$URLTwo &
"').then(function(){" &
"$.get('" &
$URLThree &
etc
and then end it with the code below
"')" &
"})" &
"});"
& "void(0);"
This is not tested but might work
I got this code from Xavier fan, another QSP who is active on this forum
The URL would look something like this:
var text Choice = ToText([My Multi-Select field];
var text DummyURL = and insert code to edit a dummy checkbox field to be = 1;
var text CMDOne = and insert the URL that does the CopyMasterDetail number One;
var text CMDTwo = and insert the URL that does the CopyMasterDetail number Two'
var text CMDThirteen = and insert the URL that does the CopyMasterDetail number Thirteen;
var text URLOne = if(Contains($Choice,"Cats"), $CMDOne, $DummyURL);
var text URLOne = if(Contains($Choice,"Dogs"), $CMDTwo, $DummyURL);
...
var text URLThirteen = if(Contains($Choice,"Parrots"), $CMDThirteen, $DummyURL);
"javascript:" &
"$.get('" &
$URLOne &
"').then(function(){" &
"$.get('" &
$URLTwo &
"').then(function(){" &
"$.get('" &
$URLThree &
etc
and then end it with the code below
"')" &
"})" &
"});"
& "void(0);"
ClaytonRountree
8 years agoQrew Cadet
how would I add a redirect to the end of this? instead of void, I want to redirect to another location