Custom Fields
Support General Conditional Redirect After Submitting MB Form

  • Creator
  • #21182
    Resolved @mindspark

    Hi again.

    I'm trying to build a complex form using MB custom field groups. My form will contain several sub-groups of custom fields vs placing all fields in the same group.

    At the very beginning of my form, I want to ask users a question - "Type of Business". The choices are "Hotel" and "Restaurant". I know I can add the 'redirect' attribute to the shortcode to direct users to another page after submission, but instead, I am asking about directing users to a specific form sub-group based on their answer.

    Example -

    Question - "Type of Business"

    If user chooses "Hotel" then I want to direct them to the Hotel questionnaire.

    If user chooses "Restaurant" then I want to direct them to the Restaurant questionnaire.

    how can I set up this conditional redirect using MB forms?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #21189
    Long Nguyen


    There is a filter hook rwmb_frontend_redirect to change the redirect URL but it only supports checking the shortcode attributes, not the field's value. I'm going to create a feature request to support filtering the redirect URL base on the field's value.

    In this case, I think you should create two groups, just show when the user selects type of business.


    I thought of your suggestion, but there are about 75-90 total fields needed between the two situations. And when they are all loaded into a single field group, then it loads very slowly on the backed.

    until you can implement this feature, I may display the first form using Gravity Forms, since they have that kind of conditional redirect built into the plugin.


Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.