June 16, 2020, 11:41 AM
thinkWF[SOLVED] IbComposer_enableHtmlElement - not working completely as expected
Hello,
I am trying to utilize the IbComposer function to enable and disable the HTML elements.
Below is from the documentation.
IbComposer_enableHtmlElement(elementID,bEnable);
where:
elementID
Alphanumeric
Is the unique identifier of the element which is enabled or disabled.
bEnable
Boolean
Is an operator that can be set to true to enable the element and false to disable it.
Example: Enabling or Disabling Elements
function checkbox2_onclick(event) {
IbComposer_enableHtmlElement('listbox1', IbComposer_isSelected('checkbox2','country'));
IbComposer_enableHtmlElement('combobox1', IbComposer_isSelected('checkbox2','car'));
IbComposer_enableHtmlElement('listbox2', IbComposer_isSelected('checkbox2','model'));
IbComposer_enableHtmlElement('combobox2', IbComposer_isSelected('checkbox2','dcost'));
}
In my case, the enable functionality works fine but disabling is not working as expected.
Enable - IbComposer_enableHtmlElement('radio1','true');
Disable - IbComposer_enableHtmlElement('radio1','false');
Appreciate any suggestions on this.
Thank you.
This message has been edited. Last edited by: thinkWF, June 16, 2020, 04:31 PM
MartinYTry with
Enable - IbComposer_enableHtmlElement('radio1', 1);
Disable - IbComposer_enableHtmlElement('radio1', 0);
June 17, 2020, 07:19 AM
MartinYMy pleasure
Please update your first post then add [SOLVED] at the beginning of the subject