How enable row inside subform by javascript ?
Hi dears
I can enable or disable any field outside subform by javascript but fields insdie subform doesn't work with me , could you explain it , please
-
HI Abdulaziz Alanazi,
You can make us of following documentation to update control property
Here is the example below:
/* Function which can be called to enable disable control */
function EnableControl(name, value) {
eFormHelper.updateFieldProperty({fieldId: name, propertyName: eFormHelper.constants.fieldProperty.Enabled, value: value });
}
/* How to use it */
EnableControl('TextBox', false); // for disabling
EnableControl('TextBox', true); // for enabling
EnableControl('SubForm1/TextBox: [1]', true); // for enabling specific row
EnableControl('SubForm1/TextBox: [*]', false); // for enabling allYou can make a function out of helper methods and call multiple times when ever needed.
サインインしてコメントを残してください。
コメント
3件のコメント