So I have a DB entry which contains flight routing. On the form when the booking is created, the user selects one-way, return, or multi-leg booking.
Below this is the boxes to select the locations for each leg.
When updating the Booking Routing field, which is set to be a List of Texts, when I select ADD, it won’t add the text if it already exists in the list.
for example, if the user selects Return, I want the Routing field to contain 4 items. The origin, the destination, then the destination then the origin again, because it is a return flight.
But, if I just try to add the destination and origin to the list again, it doesn’t add them, presumably because they’re already there.
How do I get around this? Should I use “set” list instead? I was messing around with that but I can’t figure out how to add each dropdown item. The statement just turns red all the time…