Hello,
In classic form, value for a given cell in a table can be assigned like $('[name="Field114(2)"]').val("-1"). How can this be done in the modern form designer using LFForm.setFieldValues?
Tks.
Hello,
In classic form, value for a given cell in a table can be assigned like $('[name="Field114(2)"]').val("-1"). How can this be done in the modern form designer using LFForm.setFieldValues?
Tks.
If you are assigning a specific value to each row you can use:
LFForm.setFieldValues({fieldId: 52}, ["1", "2", "3", "4", "5", "6", "7"]);
Just change out the values you are using.
You can also use the Index
LFForm.setFieldValues({fieldId: 51, index: 3}, "3");
Adjust the index value for the row you are assigning a value to. The row will start at 0.
This should help you with what you are looking for: Javascript in the Forms Designer
Hello,
To clarify, I have a table with Fixed number of rows. How do I reference to each row, say Binding, for I don't see the fieldID's in the Layout. FieldID:52, I think, is referenced to the column?
If you are assigning a specific value to each row you can use:
LFForm.setFieldValues({fieldId: 52}, ["1", "2", "3", "4", "5", "6", "7"]);
Just change out the values you are using.
You can also use the Index
LFForm.setFieldValues({fieldId: 51, index: 3}, "3");
Adjust the index value for the row you are assigning a value to. The row will start at 0.
There's a typo on my end. Should be {fieldId... not {fieldID
Many thanks for your help.