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

Question

Question

In date/time field on Form how do I display ONLY current date and time in the field

asked on January 11, 2021

Within forms, I have a date field with show time. I only want the current date and time (in the person's time zone) displayed and they shouldn't be able to change it. How do I that? I know little-nil about code. Thank you!

current field.png
0 0

Answer

SELECTED ANSWER
replied on January 11, 2021

Default value: current_datetime

default value item.png
0 0

Replies

replied on January 11, 2021 Show version history

Also, I know how to do date- datefill in css class but that only works for if show time isn't selected. How do I do current date BUT also the current time in the person's timezone? 

0 0
SELECTED ANSWER
replied on January 11, 2021

Default value: current_datetime

default value item.png
0 0
replied on January 11, 2021

In the field settings, go down to the default value. The top of that list is Current date/time. If you set the default value to current date/time and make the field read only, it should be what you're looking for. 

0 0
replied on January 11, 2021

Thanks, I'd been digging through forum answers and just happened to see someone with a more complex issue and saw default value: current_datetime. I appreciate your quick response though!

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

Sign in to reply to this post.