cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Type to a Input Field/Text on a Adobe Form

Former Member
0 Kudos

Hi All,

Here's the scenario where am facing the issue.

- A field in table of a PDF form, which reads data from an external system (XML Data) and displays as it is.

- The field may contain numbers of Year or a Date in few cases.

Now I need to display the field as number if its a number and year if its a year (or date if a date). Help me how the following functionality can be achieved:

- To display in Date format if Date

- To display in Year format in YYYY if a year. Can a type can be read and assigned dynamically. If this can be achieved, then one solution can be placing two input fields on the form and showing the one needed by reading the type

- Number format is currently appearing with leading zeros and two decimal points. A small issue, if standalone, but even need to remove the leading zeros while achieving the dynamic type functionality.

Any inputs greatly appreciated.

Thanks,

SV

Accepted Solutions (0)

Answers (1)

Answers (1)

OttoGold
Active Contributor
0 Kudos

Hello,

you need to write some "validation script" which tests the type of the information. Next you will need the subform with few fields - for the same value but with the various types. You determine the type, fill the right field, set presence to "hidden" for all the others and maintain the display pattern for the field which is visible (the right one, like date field and its pattern).

Otto