Jump to content

Make hidden field Required


Recommended Posts

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>

 

Link to comment
Share on other sites

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 ()

Link to comment
Share on other sites

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.
 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...