Disabling an option in a form once selected by a single user

Im working on a custom form using developer tools, but I need help. I need that my user could select an option from a range of options using ratio buttons and when the form is submitted that option must dissapear for others users

For example when booking a specific hour for a classroom once selected, that hour should not be selected by other user anymore then it shouldn´t be shown for orther users.

This is how the section may look. The idea is that if the current user selects, for example, 2 p.m, it is saved on the database but the next user won’t have that option since it is already selected.

WHAT DO I NEED TO DO?? Im desperate.

Regards,
Alvaro

Hello Alvaro,

To do this you would need to create a collection and connect the drop down to the collection. On submit you would then submit the information normally as you are doing and then delete that item from the collection(item being the drop down value) using the remove method.

Hope this helps,
Majd

Hello Majd,

Thank you for answering my post. I see that I need to use the wix code API, nevertheless, I am not a programmer, then it is very difficult to me to understand how it works. Would you mind teaching me how to do that? Or maybe share some resources to learn basic programming with the API.

Also, your information was very useful.

Alvaro.