####################
Debug information
####################
--------------------
Original expression: ( ($(wpcf-deck-event-vessel-selection-options).id(1523)) = '3' )
--------------------
After matching 2 numeric strings into real numbers: ( ('') = 3 )
Matched '3' to 3
Given that the above says Matched '3' to 3, what could be the reason for the contents of the conditional still not showing on the front end?
Please provide temporary access WP-Admin Login and FTP login info to your site. Your next answer will be private which means only you and I have access to it.
=== Please backup your database and website ===
✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.
✙ Please add the post link where I can see the issue.
✙ Please add the link where you have created the CRED form.
I have added following shortcode for getting parent field value:
// Shortcode to get deck parent field value
add_shortcode('get_deck_parent_field_val', 'get_deck_parent_field_val_func');
function get_deck_parent_field_val_func() {
if(isset($_GET['parent_deck-event-overviews_id']))
return do_shortcode("[types field='deck-event-vessel-selection-options' id='".$_GET['parent_deck-event-overviews_id']."']");
}
I see this working now, but unfortunately the same does not work for an Edit Post form.
The following will output in the Edit form with no issue:
[types field='deck-event-vessel-selection-options' id='[wpv-post-field name="_wpcf_belongs_deck-event-overviews_id"]'][/types]
However when placed in a conditional it simply does not work and the debug box doesn't appear either.
[wpv-conditional if='( '[types field="deck-event-vessel-selection-options" id="[wpv-post-field name="_wpcf_belongs_deck-event-overviews_id"]"][/types]' eq 'Specify Vessel/s Per Route or Departure' )' debug="true"]Success[/wpv-conditional]
Could you advise on how to implement this in the Edit form?
For reference, the edit form ID is 111 and I am testing this code at the top of that form (incase you need to find it)