Skip to main content
Participating Frequently
August 6, 2024
Question

How to create a date field with the option for free text?

  • August 6, 2024
  • 1 reply
  • 1862 views

The option box I see everyone referencing, "Allow user to enter custom text" is not present on the format tab or anywhere else that I can see. Is there another way to do this?

This topic has been closed for replies.

1 reply

creative explorer
Community Expert
Community Expert
August 6, 2024

@Rex390265741pal there are a few ways, but:

1. All Tools - Prepare a Form - Create A Form

 

2. Click on Edit - Text 


3. In the tool bar, click on the text tool to enter text


4. 

m
Participating Frequently
August 6, 2024

Definitely appreciate the response. I apologize, I don't think I was clear enough in my question.

I have a date field box created with the option to select a date. I want to keep that option and allow users to enter text as well. In the current date field box, under format and options, there is not an option to allow users to create custom text. 

If I create a drop down box, under options tab there is an option for allow custom text; however, when I select date under format tab, it does not allow custom text due to not being in proper format. 

Participating Frequently
August 7, 2024

You can create a (text) field that only accepts dates in a specific format, or specific strings (such as "unlimited" or "no expiration"), but a date field that accepts input of all kinds is the same as an open-text field.

The former will require creating a custom-made validation script, though.


Cool, that might actually work good. I picked up the below from another response you had to someone. What would need to change/be added to it to only allow the date in the sepcific format in the script?

 

if (event.value) {
if (util.scand("mmmm d, yyyy", event.value)==null && event.value!="Unlimited") {
app.alert("Invalid value entered.");
event.rc = false;
}
}