Problem: I have a Form that uses conditionals based on the value of a generic field. That field is set using the cred_post_parent shortcode, but it's not working after updating to Types 3.2.1.
Solution: Instead of setting the value based on cred_post_parent, use the wpv-search-term shortcode to directly access the parent post URL parameter.
[cred-generic-field field="_wpcf_belongs_company-profile_id" type="hidden" class=""] { "required":1, "validate_format":0, "persist":1, "default":"[wpv-search-term param='parent_company-profile_id']" } [/cred-generic-field]
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 5 replies, has 2 voices.
Last updated by 6 years ago.
Assisted by: Christian Cox.