I'm trying to check if a parent record has a value in a specific field.
I've tried using ( ( $(member-email).item(@member-item.parent) eq '' ) ) and ( empty( $(member-email).item(@member-item.parent)) )
with no luck.
I've read about using a function to return the field length but all the example I've found refer to the older versions e.g.
[wpv-conditional if="( '[fieldlength field='wpcf-author-name']' gt '1' )"]
YES
[/wpv-conditional]
how can I use this with the latest version? I've tried what makes sense to me syntactically with the advanced conditional editor but can't fathom ot.
Cheers in advance.
Hi,
Thank you for contacting us and I'd be happy to assist.
I've performed some tests and the following formats for the conditional statements worked inside the advanced editor of the "Conditional" block:
1. 'Not empty' check for the field "product-single-line-field" from the parent post in the relationship 'product-location':
NOT ( empty( '[wpv-post-field name=wpcf-product-single-line-field item=@product-location.parent]') )
2. Empty check for the field "product-single-line-field" from the parent post in the relationship 'product-location':
( empty( '[wpv-post-field name=wpcf-product-single-line-field item=@product-location.parent]') )
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
My issue is resolved now. Thank you!
What you've said works and I think I can take that forward to what I need.
Great support as always.