Skip Navigation

[Resolved] [cred_show_group] shortcode not showing posts

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 0 replies, has 1 voice.

Last updated by AustinB6251 5 years, 5 months ago.

Assisted by: Waqar.

Author
Posts
#1274145

Hello, I'm trying to use the [cred_show_group] shortcode to show two different fields in a post form, but can't get it working.

I thought it was something simple like using encoding for spaces in values or having a default set in the conditional field but still can't get it working.

The conditional fields are at the end of this form (lines 57 > 68).

I've tried to solve it and looked the documentation but can't see a reason this isn't working.

[credform]
[cred_field field='form_messages' class='alert alert-warning']
<h2>Business Details</h2>
<div class="form-group">
<label>Business Name</label>
[cred_field field='post_title' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>Business Categories</label>
[cred_field field='business-category' force_type='taxonomy' output='bootstrap' display='select' single_select='true']
</div>
<div class="form-group">
<label>Business Description</label>
[cred_field field='business-description' force_type='field' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>Address</label>
[cred_field field='address' force_type='field' class='form-control' output='bootstrap']
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label>Phone</label>
[cred_field field='phone' force_type='field' class='form-control' output='bootstrap']
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label>Email</label>
[cred_field field='email' force_type='field' class='form-control' output='bootstrap']
</div>
</div>
</div>
<div class="form-group">
<label>Website URL</label>
[cred_field field='website-url' force_type='field' class='form-control' output='bootstrap']
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label>Logo</label>
[cred_field field='logo' force_type='field' class='form-control' output='bootstrap']
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label>Featured Image</label>
[cred_field field='featured-image' force_type='field' class='form-control' output='bootstrap']
</div>
</div>
</div>
<h2 style="padding-top: 30px;">Membership Details</h2>
<div class="form-group">
<label>Membership Type</label>
[cred_field field='membership-type' force_type='field' class='form-control' output='bootstrap' value='Platinum Plus Membership']
</div>
[cred_show_group if="( $(membership-type) eq 'Premium Membership' )" mode="none"]
<div class="form-group">
<label>Business Size (Premium)</label>
[cred_field field='business-size-premium' force_type='field' class='form-control' output='bootstrap']
</div>
[/cred_show_group]
[cred_show_group if="( $(membership-type) eq 'Platinum Plus Membership' )" mode="none"]
<div class="form-group">
<label>Business Size (Platinum Plus)</label>
[cred_field field='business-size-platinum-plus' force_type='field' class='form-control' output='bootstrap']
</div>
[/cred_show_group]
[cred_field field='form_submit' output='bootstrap' value='Submit' class='btn btn-primary btn-lg']
[/credform]

#1274151