Copy link to clipboard
Copied
Hi,
I want a text to autopopulate based on the choices of two dropdown menus. The \r pagebreak isn't working. Anyone can help me?
if ((f.valueAsString=="choice1") && (g.valueAsString == "choiceA")) event.value = "First line of text\rSecond line of text.";
Copy link to clipboard
Copied
Enable the multi line option of the text field.
Copy link to clipboard
Copied
 var f = this.getField("Dropdown1"); var g = this.getField("Dropdown2"); if ((f.valueAsString=="Cucumbers") && (g.valueAsString == "Spidermite")) event.value = "First line\rSecond line.";
Copy link to clipboard
Copied
Enable the multi line option of the text field.
Copy link to clipboard
Copied
AMAZING! Thank you so much @Bernd Alheit
Copy link to clipboard
Copied
in the future, to find the best place to post your message, use the list here, https://community.adobe.com/
p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.
<"moved from using the community">
Copy link to clipboard
Copied
thank you @kglad much appreciated
Copy link to clipboard
Copied
you're welcome (and glad an acrobat expert was able to help).
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more