Jump to content

Is It Possible To Enter Dates Only With Calendar?


Recommended Posts

Hi everyone,

 

I have Date/Times fields on my DataPages. Sometimes users enter dates in wrong format. It is not a problem, when day is more than 12, but in the first half of a month it is a headache.

 

Is it possible to deny entering in the field by hand, but allow entering with a calendar?

 

Thank you for your time!

Link to comment
Share on other sites

Hello Cameron! 

 

Yes , it is possible. You can add a Footer element  , click on the "Source" button and insert the following script : 

<script>
document.getElementById('InsertRecordYour_Date_Field').readOnly=true;
</script>

Please note that the following script works on the Submission Form only.

 

For Details Page and Single Update Form the script will be as follows: 

<script>
document.getElementById('EditRecordYour_Date_Field').readOnly=true;
</script>

Hope this helps. 

 

Have a good day! :)

 

Aurora

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...
×
×
  • Create New...