Removing selected options submitted in previous fields in a form

By: Isabelle Pryde | Asked: 04/28/2023
ForumsCategory: Code HelpRemoving selected options submitted in previous fields in a form
Isabelle Pryde asked 2 years ago
Hi, I have a form with 4 fields showing dynamic content.   I would like to remove the selected options in the other fields.   I have used the custom code: https://formidableforms.com/knowledgebase/frm_setup_new_fields_vars/#kb-remove-used-options   However, this only removes the selected options on each field separately. I need it to remove them across the 4 fields.   Can anyone help me with this?   Thank you so much in advance!   here is an example: a972f130-2978-4b34-8d21-31071d418ad0
Vinia marciano replied 11 months ago

Hi, Isabelle. Were you able to implement this in FF? It's so frustrating that simple and common features such as this cannot be implemented easily in FF. I recently emailed support on how to apply validation to multi-select fields such that a combination of values cannot be selected together. I couldn't find it in the documentation *sigh*

Vinia marciano replied 11 months ago

Hi, Isabelle. Were you able to implement this in FF? It's so frustrating that simple and common features such as this cannot be implemented easily in FF. I recently emailed support on how to apply validation to multi-select fields such that a combination of values cannot be selected together. I couldn't find it in the documentation *sigh*

1 Answers
Victor Font answered 2 years ago

If you want to remove the selected values in real time, you need to use jQuery. You should also consider showing the removed values again if a user unchecks a previously selected field. There are multiple ways of doing this depending on what you want to achieve. You can either disable selections, hide previous selections with CSS, of remove/add through the DOM. This will give you an idea of what's required: https://www.javascripttutorial.net/javascript-dom/javascript-add-remove-options/. If you need a developer's help, please visit https://formidable-masterminds.com/developers-directory/

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right