tscmedlake Posted August 11, 2017 Report Share Posted August 11, 2017 I'm am trying to conditionally display the Update button on a Details form based on the toggle of a boolean check box on the data page. The java scrip I have in the footer looks like this: <script type="text/javascript"> /* 1 - get the Yes/No field */ var cb_boolean = '[@field:BO_Approved]'; if (cb_boolean == 'No') { /* Hide The Update button*/ document.getElementById("Mod0EditRecord").style.visibility = 'hidden'; } else { /* Show The Update button*/ document.getElementById("Mod0EditRecord").style.visibility = 'visible'; } </script> The script does hide the button but it is not revealed when the Checkbox (BO_Approved) is checked. What am I missing. Thanks in advance Quote Link to comment Share on other sites More sharing options...
Mathilda Posted August 16, 2017 Report Share Posted August 16, 2017 On 8/11/2017 at 4:15 AM, tscmedlake said: I'm am trying to conditionally display the Update button on a Details form based on the toggle of a boolean check box on the data page. The java scrip I have in the footer looks like this: <script type="text/javascript"> /* 1 - get the Yes/No field */ var cb_boolean = '[@field:BO_Approved]'; if (cb_boolean == 'No') { /* Hide The Update button*/ document.getElementById("Mod0EditRecord").style.visibility = 'hidden'; } else { /* Show The Update button*/ document.getElementById("Mod0EditRecord").style.visibility = 'visible'; } </script> The script does hide the button but it is not revealed when the Checkbox (BO_Approved) is checked. What am I missing. Thanks in advance You may have a look at this post. I use script from that post in my datapage and it works like a charm Quote Link to comment Share on other sites More sharing options...
RuisiHansamu Posted May 22, 2022 Report Share Posted May 22, 2022 Hello there, there is an updated forum post that is related to this topic. I have followed this post and it has custom javascript as well to achieve this. Maybe this would help you guys out. Cheers! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.