Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Is possible to have an expandable text field in a drop down list option (@livecycle)?

joslug89
Level 1
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
joslug89
Level 1
Level 1

Yes, I'm working this form in LiveCicle Designer

try67
Level 4
Level 4

I moved your question to the relevant forum.

_Bruce_Robertson
Level 10
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

joslug89
Level 1
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?

_Bruce_Robertson
Level 10
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