Dropdown with groups (categories)
How to add groups for WordPress dropdown element so the items belong to categories/subcategories.
In the below JavaScript code simply change field_name
to the dropdown field name, and add or edit red1
, blue1
, green1
with the first item that should belong to the group. If you have multiple dropdowns you can extend the groups
object.
You can copy paste this code under Super Forms > Settings > Custom JS.
PreviousAutomatically redirecting to next step after displaying text or a progress barNextPrevent form submission based on entered field values
Last updated