Hi,
I have a website with listings. Depending of the role of the author, some fields are showed and some not. This part works fine.
I would like to replicate this function but for the CRED form when people create their listing. Depending of if they have a free, silver or gold membership, some fields are visibile, some not.
I have wraped the fields with this code :
[wpv-conditional if="( '[user_role_func]' eq 'silver_membership' ) OR ( '[user_role_func]' eq 'gold_membership' ) OR ( '[user_role_func]' eq 'free_membership' ) OR ( '[user_role_func]' eq 'administrator' )"]
[/wpv-conditional]
The condition doesn't work. With free, silver and gold membership role, we can still see all the fields.
How can I hide fields in CRED form for specific user role?
Thank you,
I finally found on your forum this code that make it work in CRED :
[wpv-conditional if="( '[wpv-current-user info="role"]' eq 'free_membership' ) OR ( '[wpv-current-user info="role"]' eq 'silver_membership' ) OR ( '[wpv-current-user info="role"]' eq 'gold_membership' ) OR ( '[wpv-current-user info="role"]' eq 'administrator' )"]
Thank you!!