I have a table in Laserfiche Forms with two columns and three fixed rows.
The variable assigned seems to be only set for the columns on the first row? Is there a way to obtain the variables for the two other rows?
I have a table in Laserfiche Forms with two columns and three fixed rows.
The variable assigned seems to be only set for the columns on the first row? Is there a way to obtain the variables for the two other rows?
Anywhere you're using a token you can right-click to get the Token Editor, then tell it which value to use in the Apply Index area.
Yes using the variable given for the table in question in place of "Table_Variable" and using nth-child(n) selector for selecting the column. The example below will select the first column inputs.
Note: we start at 2 because the first column contains the labels. Unless of course you have hidden the labels in which case you can start from 1.
$('li[attr="Table_Variable"] table tr td:nth-child(2) input') // will select first column
$('li[attr="Table_Variable"] table tr td:nth-child(3) input') // will select second column
Hope this helps!
Depending on what you're doing, Workflow can also get at them. Typically you would use a For Each Row to loop through the table but you can also use the variable itself and then, with the Token Editor, tell it which value (row) to use. The one thing is you have to know how many rows the table has to use that second method effectively.
Is the token editor the "Assign Token Values" tool? I have it set up like this but it isn't working.
Anywhere you're using a token you can right-click to get the Token Editor, then tell it which value to use in the Apply Index area.
Thanks so much! It works great.