Kuroshi Posted May 1, 2021 Report Share Posted May 1, 2021 Hello, I have several fields in a submission form. If the fields are not being populated, I want the submit button disabled. Is this possible under your localization or Styles? Hoping for a response. Thank you. Quote Link to comment Share on other sites More sharing options...
Barbie Posted May 1, 2021 Report Share Posted May 1, 2021 Hello, This specific workflow can be achieve using JavaScript custom coding. I can provide you a sample logic for reference. <script type="text/javascript"> document.addEventListener('DataPageReady', function(event) { document.querySelector("input[name='Submit']").disabled = true; document.addEventListener('change', function(event) { var ID = document.getElementById("InsertID").value; if( ID == '') { document.querySelector("input[name='Submit']").disabled = true; } else { document.querySelector("input[name='Submit']").disabled = false; } }); }); </script> I hope this works. - Barbie Quote Link to comment Share on other sites More sharing options...
Barbie Posted May 1, 2021 Report Share Posted May 1, 2021 Just to add, if in case you want to add a warning message, there's a forum post that has a Javascript code for that. Please refer to this: 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.