Hidden Fields

Formidable Forms
21 September, 2022 04:53:24
muzaffaryounus
Topics: 4
Messages: 19
Dear,

If I want to hide some field information from a specific role type then how can I do that?
For example, I have a role for Members in WordPress and I want to hide Office data from them from PDF View.
I tried and I think this can be done by Action settings of the field but what I have to define in IF and VALUE Conditions.

Thanks.
21 September, 2022 05:22:06
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

If you need to show field depending on the user who is viewing PDF URL, you can use the [e2pdf-user] shortcode as:

Hide IF ANY:

[e2pdf-user id="current" key="roles" implode=", "] LIKE role
[e2pdf-user id="current" key="ID"] = 0

* "role" must be replaced with user "role"

2nd condition must check if the user has been logged in.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
21 September, 2022 07:02:26
muzaffaryounus
Topics: 4
Messages: 19
Thank You