Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 28, 2010 at 07:56 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.