show certain fields based on restrict content pro user roles

Support MB Frontend Submission show certain fields based on restrict content pro user rolesResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38453
    hello@twosixmedia.co.uk[email protected]
    Participant

    Hi

    I have a membership site set up with 2 levels free and premium - I am using front end submission to allow the user to add their own listings - I tried using 2 separate forms for this - one for each level (one a duplicate of the first but with more fields for the premium members) - but when I try to add the listings it doesn't work how I thought it might - the fields seem to separated with each form - even though the fields have the same field names.

    So it tried using just one form - but how do I only show the correct fields for the correct user role - free members should only see the free parts of the form - premium should see all of it.

    The conditional logic doesn't seem to apply to this scenario.

    I'm not a coder so any help would be greatly appreciated in this.

    kind regards

    Paul

    #38458
    Long NguyenLong Nguyen
    Moderator

    Hi Paul,

    Currently, MB Conditional Logic does not support showing/hiding a field based on the user role. You can use the extension MB Include Exclude to show/hide a meta box (field group) based on the user role. And add more meta box IDs to a frontend form as well.

    Please read more on the documentation https://docs.metabox.io/extensions/meta-box-include-exclude/
    https://docs.metabox.io/extensions/mb-frontend-submission/#how-to-add-more-field-groups-meta-boxes-to-the-frontend-submission-form

    #38466
    hello@twosixmedia.co.uk[email protected]
    Participant

    thank you - I think that using the ad more metaboxes on the front end form might be all I need as I can show hide the different shortcodes using Oxygen conditions

    thanks Long for your help in this

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