Conditional Redirect After Submitting MB Form

Support General Conditional Redirect After Submitting MB FormResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21182
    @mindspark@mindspark
    Participant

    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?

    thx

    #21189
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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.

    #21198
    @mindspark@mindspark
    Participant

    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.

    thanks!

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