Expand my Community achievements bar.

Once only Action Messages.

Avatar

Former Community Member

Peep's,

I have a form developed with LiveCycle which has 3 list boxes. Now for each of these lists, I've setup an action so that when the list is entered it shows a message box.

The problem I have is that I only want the message to appear once, and not everytime I click on the list to select an entry.

Is this possible with some solution, maybe coded directly via Javascript?

Thanks in advance.

1 Reply

Avatar

Level 5

You can add a hidden field for each of the 3 messages.

Set the default or initial value of each to 'true'

When you trigger the code that displays the message, check to see if the value in the hidden field is 'true'.

If it is, show the message, and set the field to 'false'

If when checked, the associated field is 'false', take no action on the display.

Up to you if you want the messages only once on the life of the form, or once each time the form is opened.

If you want them only once ever, you will need to save the data along with your other form data, and adjust the initialize logic.

Hope this helps.

Mark