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 possible to have an expandable text field in a drop down list option (@livecycle)?

Avatar

Level 1

I'm trying to create a form to answer questions with a drop down menu. Most of the question can be answer with a "yes" or "no", but I would like to create a third option "other" so the person can add a comment, note, etc. Is possible to have an expandable text field in a drop down list option? I know I can allow custom text entry but when I preview the form the text field doesn't expand as the text field do.

7 Replies

Avatar

Level 1

Yes, I'm working this form in LiveCicle Designer

Avatar

Level 4

I moved your question to the relevant forum.

Avatar

Level 10

I would have a hidden text field to the side (or below) the dropdown and make it visible if the 'other' option is chosen

Avatar

Level 1

Yes!, that works for me... how I can do that? How I can configure my form to have that field invisible until the "other" option is chosen?

Avatar

Level 10

Hi,

A TextField has a presence property, which you can set to "visible" or "invisible", so in the change event of the dropdown you could have this JavaScript code;

     TextField1.presence = (xfa.event.change === "Other") ? "visible" : "invisible";

Then in the initialise event of the dropdown you could have this code to set it the first time.

     this.execEvent("change");

Which just calls the change event to set the presence the when the form is open.

Here is a sample

https://sites.google.com/site/livecycledesignercookbooks/home/PleaseSpecify.pdf?attredirects=0&d=1

Regards

Bruce