Cameron Posted August 14, 2015 Report Share Posted August 14, 2015 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! Quote Link to comment Share on other sites More sharing options...
Aurora Posted August 14, 2015 Report Share Posted August 14, 2015 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 AlisaPeters 1 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.