Expand my Community achievements bar.

Livecycle designer ES2 regarding registration for activities at a conference.

Avatar

Former Community Member

Hi,

I am creating a form for a conference and the participants can only choose each activity on offer once during the week. However each activity is offered on multiple days. I have added a dropdown list for the options on each day. What is the best code to use so that when they choose "Activity 1" on Monday, it then becomes impossible ( via an error message?) for them to select that same workshop on any other day.

Thank you for any advice.

1 Reply

Avatar

Level 7

if you want to do it via error message then you could put in the exit event of each box something like (in formcalc):

if ($.rawValue == DropDownList2.rawValue) then

xfa.host.messageBox("You cannot choose the same activity")

endif

Otherwise you could just use the preOpen event of each box to reset the dropdown list options and remove the option that has already been selected.