Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Is it possible to dynamically create form fields in PDF form?

Avatar

Former Community Member

Hi all,

I would like to dynamically create object like textbox, dropdown list from xml data. For example:

When I receive following xml data:

<field name="Check Box" type="selectbox"/>

<field name="Text Field" type="textbox"/>

I want to generate 2 form fields check box and text field with title "Check Box" and "Text Field" accordingly.

Is it possible to do it in javascript for PDF form?

Thank you and regards,

Anh

4 Replies

Avatar

Former Community Member

You cannot dynamically create objects on the fly like that but you can create interpret the XML and create an XDP file (which is the language of the template file) then bring that into Designer and create a PDF from that.

Paul

Avatar

Former Community Member

Hi Paul,

Thank you for your reply.

Can you give me an example of code how to do it?

Regards,

Anh

Avatar

Former Community Member

No ...I do not have code like that ...I am merely pointing out that it is possible.

Paul

Avatar

Former Community Member

Hi Paul,

Thank you. I will look into it and update you later.

Regards,

Anh