Leon13 Posted June 10, 2021 Report Share Posted June 10, 2021 Greetings Is there a way that I can make a hidden field be required? Thank you! Quote Link to comment Share on other sites More sharing options...
TellMeWhy Posted June 10, 2021 Report Share Posted June 10, 2021 Yeah, definitely, however, what form Element is this field? If it's just a Text Field, you should be able to use simple JavaScript code . This is for a Submission Form <script> document.getElementById("InsertRecordFIELDNAME").required = true; </script> Quote Link to comment Share on other sites More sharing options...
Leon13 Posted June 11, 2021 Author Report Share Posted June 11, 2021 On 6/10/2021 at 9:12 AM, TellMeWhy said: Yeah, definitely, however, what form Element is this field? If it's just a Text Field, you should be able to use simple JavaScript code . This is for a Submission Form <script> document.getElementById("InsertRecordFIELDNAME").required = true; </script> Greatly appreciate your response @TellMeWhy! It is a Text field in a Submission form. I tried below in Header and Footer with HTML unchecked but was unsuccessful. <script> document.getElementById("New_catalog_entry").required = true; </script> Also tried without " "and () Quote Link to comment Share on other sites More sharing options...
TellMeWhy Posted June 11, 2021 Report Share Posted June 11, 2021 43 minutes ago, Leon13 said: Greatly appreciate your response @TellMeWhy! It is a Text field in a Submission form. I tried below in Header and Footer with HTML unchecked but was unsuccessful. <script> document.getElementById("New_catalog_entry").required = true; </script> Also tried without " "and () You need the "InsertRecord" part before the Actual Field name like in the code I've provided. 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.