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

Livecycle designer ES2 regarding registration for activities at a conference.

Anonymous
Not applicable

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
whyisthisme
Level 7
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.