I am trying to ensure:
* admin can submit the form
* users with membership status "Pending" cannot see the submit button
* users with membership status "Confirmed" can see the submit button and submit the form
I used the codes below, however, only the first part for administrator works and second and the third part does not work at all. (they are the same codes I previously used in some of my other views and they are currently working fine. Somehow it does not work with CRED)
Please notice the surrounding quotes around the left hand side of the expression, also. This is required when you want to match the string value of field with another string.
[wpv-if evaluate="'[types field="membership-status"][/types]'='Pending'"]
You are not allowed to change your business details because your membership is currently pending approval.
[/wpv-if]