Expand my Community achievements bar.

Changing text field due to a messageBox entry

Avatar

Level 2

Basically, I have created two pop up boxes which

First Box: Asks the Client Name

Second Box: Asks the Renewal Month

Once these have been answered, the fields on the form, have the answers in them.   Cool.  Done..

Now I am hoping, that the answer in the Renewal Month text field, will make another text field change, depending on the answer.  (In the following examples, each Jan, Feb, Mar etc. are separate text fields.)

Example 1:

Client Name: John Smith

Renewal Month:  January

Jan     Feb     Mar     Apr     May     Jun     Jul     Aug     Sept     Oct     Nov     Dec

Example 2:

Client Name: John Smith

Renewal Month:  September

Sept     Oct     Nov     Dec     Jan     Feb     Mar     Apr     May     Jun     Jul     Aug

Side Question: In the message box, is it possible to make a drop down field, so they would have to choose one of the 12 months instead of typing their own, (and possibly misspelling the month)

Thank you in advance! 

1 Reply

Avatar

Level 10

Hi there,

to have a drop down field within a dialog box, you should use the following dialog methods:

Adobe LiveCycle Designer Cookbooks by BR001: Using app.execDialog() in an Adobe Designer Form

if you download the file Dialog.pdf, all required information is within the file using LiveCycle Designer to view the code.

This is advanced JavaScript coding for LiveCycle Designer, creating dialogs' design using code.

For organizing the months in the order you want, I think making an array can do the trick, and sort them by starting with the selected month all the way to the end and then starting from the first month all the way to the selected month. This might get a little bit tricky, but  I hope this will lead you in the right direction.