You are viewing limited content. For full access, please sign in.

Question

Question

Display the date

asked on December 7, 2018

How we can display date as current date instead of Date captured on the form submission.

0 0

Answer

SELECTED ANSWER
replied on December 7, 2018

If you set a date field to be read-only and default it to current date, we have to show the message because we don't know the date the form is submitted until the form is actually submitted.

To get the date to actually appear on the form, you could make the date field editable which would show today's date when the form is opened, but allow the form filler to change it. 

You could also use a date field with current date as the default, then use Javascript to make it read only. The JS read only fields don't allow the user to change the date, and the date would show up on the form. The only catch is, we cannot validate on form submission that the date the form loaded with is still today's date. If the form was loaded on the 10th, but submitted on the 11th, read only JS fields would still show the 10th whereas the read only check box would submit with the 11th. 

0 0
replied on December 7, 2018

Thanks you

0 0
replied on May 9, 2019

Is there a way to change the text using JS? For example, I am able to change the text of the "Submit" and "Autofill" buttons to say something different but I haven't been able to change "Date captured on form submission" to something more custom.

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.