Skip to main content
Participant
March 6, 2016
Question

Form with default text when user doesn't enter value

  • March 6, 2016
  • 1 reply
  • 596 views

Hi,

I'm creating a form which I will then export to xml. So if 5 people give me the pdf, I will export it to xml, and merge all 5 into one document.

The issue I'm having is not all the fields are mandatory, so when I export and merge, the columns don't stay the same.

I'm not sure how to resolve this, but only thing I can think of is having a hidden default text to all the fields, so it will have a value even if the user doesn't enter anything into the form field, then remove that text after I've merged all the files.

How do I go about doing this? If you have better ideas, please let me know as well,

Thanks!

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
March 6, 2016

Here are instructions on how to set it up... If you use my method of doing it then you can use the built-in default value property to achieve it, so the instructional text will appear when you clear/reset the form: Is there a way to add instructional text to my text field that will disappear when clicked? (PDF Forms)

Participant
March 6, 2016

Hi,

Thanks for the reply, however I'm not referring to the ghost text. I need a default value for a field, so when I extract it to an XML, there's a value.

For example, Name: (Hidden value: DEFAULTNAME9999). So if the user leaves the Name field blank, when I extract it to XML, the value DEFAULTNAME9999 is there. If the user enters a value, I want the value the user entered.

Hope I've explained it better,

Thank you

try67
Community Expert
Community Expert
March 6, 2016

So you want a value that is hidden from the user but is used as the export

value if they don't fill anything in the field?

I don't think there's a built-in way of doing that. You'll need to write a

script that replaces the blank values with the desired ones before

exporting, and then resets them back afterwards.

On Sun, Mar 6, 2016 at 11:59 PM, ssidenable <forums_noreply@adobe.com>