Page actions conditionals

2 July, 2024 12:49:15
Ogia
Topics: 1
Messages: 2
I'm trying to figure out the proper syntax to use for the conditionals on these page actions

I have 2 different scenarios, but I've started with this one:

With formidable forms, the user is presented with a radio option to choose landscape or portrait orientation.

Within the template I have two pages. One has landscape orientation and one has portrait. I attempted to set page actions on each to show or hide the page.

The ID of the field is "56" and the values are "landscape" and "portrait". Please confirm what I'm supposed to put in the fields.

The second scenario will be similar except the radio options with allow to user to choose a font. I haven't tried that yet but if you can share the appropriate syntax for that as well I'd appreciate it.
2 July, 2024 13:01:34
E2Pdf
Support
Topics: 7
Messages: 3330
Hello,

For Show / Hide pages - the setup should be as on the screenshot attached, however, depending on your field setup, instead of [56], it can be [56 show="value"]. To be sure which value to use you can create a temporary "textarea" field with that mapped values and see how they are rendering.

As for the 2nd option, if you need to change the global font - unfortunately there is no yet possibility to change it via "Actions" and "Conditions". The change is currently available only for each field via "Change Property" actions. We will check if we can add global actions for global property changes.


We would really appreciate your feedback at WordPress.org!
3 July, 2024 10:52:03
Ogia
Topics: 1
Messages: 2
Thanks for the pointers! I found the problem. [56] was rendering the code to display the image for the radio button selection and [56 show="value"] gave me the desired result.

As for the font, I have the font set up for each element so that should work just fine. I'll know now to use the show="value" syntax.