issue in subform set input value by JS

Subform in Red box.
When I select Yes in second dropdown then I want to set "B" in input box2, Like vice if i select last select box I want to set C in last input box (input box 2)
-
Hi Rakesh,
You can accomplish this by using Rules in eForms. To know more about rules, please visit our documentation page on setting up rules. For the scenario that you have described, you'll need to use the 'Set Field Value' action under the 'Actions' section.
For the value to set to the target field, you can simply drag the source field from the 'Fields' section and drop it into the 'Field value' text box.
Hope this is helpful and resolves the issue. If your issue is still not resolved, please initiate a support ticket on our Support Portal where you will be able to create a detailed conversation with your queries and issues with tracking.
Regards,
Phani -

Actually, I need to use javascript to check this logic.
debugger;
var opt={};
opt.fieldId='SubformDetailInfo/Director: [this]';
eFormHelper.getFieldValue (opt, function (res)
{
if (res.isSuccess){
app1 = res.data ;
}
});Login in between
debugger;
var opt3={};
opt3.fieldId='SubformDetailInfo/FirstApprover: [this]';
opt3.value=app1
eFormHelper.setFieldValue( opt3, function(res2){});
I use code like this to get and set value in input but it collects all input box values comma saperated.
請登入寫評論。
評論
3 條評論