manuelH-2
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Check value of Checkbox in conditional
Started by: manuelH-2
in: Types Community Support
Problem: Solution: Then choose Types Fields as source, and check the Field you need (checkbox) Set your condition and click insert. I paste below a sample code. [wpv-conditional if="( $(wpcf-checkbox-single) eq '1' )"] //things in here are displayed only if Checkbox Is checked (1) [/wpv-conditional] If you need to evaluate this CheckBox while on a Child Post, so you need to check if the PARENT has that checkbox checked, you simply add id="$parent_post_type_slug_here to the ShortCode, and use Views Shortcodes instead of types ShortCodes, as in this example: [wpv-conditional if="( '[types field='checkbox-single' id='$parent-type'][/types]' eq '1' )"] //Things in here display only if the PARENT checkbox is checked (1) [/wpv-conditional] Relevant Documentation: |
2 | 7 | 8 years, 3 months ago |