Skip Navigation

[Resolved] Displaying data from parent post type in CRED form (cont)

This thread is resolved. Here is a description of the problem and solution.

Problem:

The question was well answered and the project (still in development due to some unavoidable delays) has been progressing. However, I am now getting a message about a line of code in the form which is "legacy".

Solution:

In the new version of Toolset plugins, we introduced new post type relationship,

If you have migrated the relationships settings to the new relationships( this is recommended), I suggest you follow our document to generate the form content again

https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/

If you are still using the legacy relationships, then you can ignore those messages, it should be able compatible with the latest version of Toolset plugins.

Relevant Documentation:

https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

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.

Our next available supporter will start replying to tickets in about 0.48 hours from now. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by Luo Yang 6 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1127307

I am following up from a support ticket from January, 2018.

#602474, #602522, #602802, #602835

The question was well answered and the project (still in development due to some unavoidable delays) has been progressing. However, I am now getting a message about a line of code in the form which is "legacy". This is the line in question:

[cred_field field='_wpcf_belongs_max-office_id' value='' order='date' ordering='desc' select_text='search dropdown' class='form-control' output='bootstrap' style="padding-bottom:1em;height:43px;"]

Here is the whole form:

<div class="row" style="background-color:#d9d9d9;">
<div class="col-sm-4">

</div>
<div class="col-sm-4">
<img style="padding-bottom:10px; padding-top:10px; background-color:#d9d9d9;" src="/wp-content/uploads/2018/02/max-employment-logo-300.png">
</div>
<div class="col-sm-4">

</div>

<hr>

</div>

[credform class='cred-form cred-keep-original']
[cred_field field='form_messages' value='' class='alert alert-warning']
<div style="background-color:#e8e8e8;">

<div class="row" style="background-color:#e8e8e8;margin-top:10px;margin-bottom:10px;">
<div class="col-sm-3" style="height:90px;">
<div class="form-group">
<label>MAX Order No</label>
[cred_field field='post_title' post='max-order' value='' urlparam='' class='form-control' output='bootstrap' placeholder="enter Purchase Order No"]
</div>
</div>

<div class="col-sm-3" style="height:90px; background-color:#e8e8e8;">
<div class="form-group" style="height:43px !important;">
<label>Select Office</label>
[cred_field field='_wpcf_belongs_max-office_id' value='' order='date' ordering='desc' select_text='search dropdown' class='form-control' output='bootstrap' style="padding-bottom:1em;height:43px;"]

</div>
</div>

<div class="col-sm-3" style="height:90px; background-color:#e8e8e8;">
<div class="form-group">
<label>Approved By:</label>
[cred_field field='person-approving' post='max-order' value='' urlparam='' class='form-control' output='bootstrap']
</div>
</div>

<div class="col-sm-3" style="height:90px; background-color:#e8e8e8;">
<div class="form-group">
<label>Approver's Role:</label>
[cred_field field='approvers-role' post='max-order' value='' urlparam='' select_text='-- select a role --' class='form-control' output='bootstrap']
</div>
</div>
</div>

<!-- <h3 class="max-order-subheading">BUSINESS CARDS</h3> -->

<div class="row" style="background-color:#e8e8e8;border-top:1px white solid;border-bottom:1px white solid;">
<!-- Data for Person 1's Business Card -->
<div class="col-sm-3" style="border-right: 1px solid white;" >
<div class="form-group">
<label>Business Card 1</label>
[cred_field field='name-1' post='max-order' value='' urlparam='' class='form-control' output='bootstrap' placeholder='name'] <br/>

<!-- <label>Role</label> -->
[cred_field field='role-1' post='max-order' value='' urlparam='' select_text='-- select a role --' class='form-control' output='bootstrap'] <br/>

<!-- <label>Email</label> -->
[cred_field field='email-1' post='max-order' value='@maxemployment.com.au' urlparam='' class='form-control' output='bootstrap'] <br/>

<!-- <label>Mobile No</label> -->
[cred_field field='mobile-1' post='max-order' value='' urlparam='' select_text='-- select a role --' class='form-control' output='bootstrap' placeholder='mobile number']

</div>
</div>

<!-- Data for Person 2's Business Card -->

<div class="col-sm-3" style="border-right: 1px solid white;">
<div class="form-group">
<label>Business Card 2</label>
[cred_field field='name-2' post='max-order' value='' urlparam='' class='form-control' output='bootstrap' placeholder='name'] <br/>

<!-- <label>Role</label> -->
[cred_field field='role-2' post='max-order' value='' urlparam='' select_text='-- select a role --' class='form-control' output='bootstrap'] <br/>

<!-- <label>Email</label> -->
[cred_field field='email-2' post='max-order' value='' urlparam='' class='form-control' output='bootstrap'] <br/>

<!-- <label>Mobile No</label> -->
[cred_field field='mobile-2' post='max-order' value='' urlparam='' select_text='--- not set ---' class='form-control' output='bootstrap' placeholder='mobile number']

</div>
</div>

<!-- Data for Person 3's Business Card -->
<div class="col-sm-3" style="border-right: 1px solid white;">
<div class="form-group">
<label>Business Card 3</label>
[cred_field field='name-3' post='max-order' value='' urlparam='' class='form-control' output='bootstrap' placeholder='name'] <br/>

<!-- <label>Role</label> -->
[cred_field field='role-3' post='max-order' value='' urlparam='' select_text='-- select a role --' class='form-control' output='bootstrap']<br/>

<!-- <label>Email</label> -->
[cred_field field='email-3' post='max-order' value='' urlparam='' class='form-control' output='bootstrap'] <br/>

<!-- <label>Mobile No</label> -->
[cred_field field='mobile-3' post='max-order' value='' urlparam='' select_text='--- not set ---' class='form-control' output='bootstrap' placeholder='mobile number']

</div>
</div>

<!-- Data for Person 4's Business Card -->
<div class="col-sm-3">
<div class="form-group">
<label>Business Card 4</label>
[cred_field field='name-4' post='max-order' value='' urlparam='' class='form-control' output='bootstrap' placeholder='name'] <br/>

<!-- <label>Role</label> -->
[cred_field field='role-4' post='max-order' value='' urlparam='' select_text='-- select a role --' class='form-control' output='bootstrap']<br/>

<!-- <label>Email</label> -->
[cred_field field='email-4' post='max-order' value='' urlparam='' class='form-control' output='bootstrap'] <br/>

<!-- <label>Mobile No</label> -->
[cred_field field='mobile-4' post='max-order' value='' urlparam='' select_text='--- not set ---' class='form-control' output='bootstrap' placeholder='mobile number']

</div>
</div>

</div>
<!-- <h3 class="max-order-subheading">STATIONERY</h3> -->

<div class="row" style="background-color:#e8e8e8; margin-top:10px; margin-bottom:10px;">
<div class="col-sm-3">
<div class="form-group">
<label>Letterhead</label>
[cred_field field='letterhead' post='max-order' value='' urlparam='' select_text='--- not set ---' class='form-control' output='bootstrap']
</div>
</div>

<div class="col-sm-3">
<div class="form-group">
<label>With-Comps</label>
[cred_field field='with-comps' post='max-order' value='' urlparam='' select_text='--- not set ---' class='form-control' output='bootstrap']
</div>
</div>

<div class="col-sm-3">
<div class="form-group">
<label>C5 Envelopes</label>
[cred_field field='c5-envelopes' post='max-order' value='' urlparam='' select_text='--- not set ---' class='form-control' output='bootstrap']
</div>
</div>

<div class="col-sm-3">
<div class="form-group">
<label>D5 Envelopes</label>
[cred_field field='d5-envelopes' post='max-order' value='' urlparam='' select_text='- D5 Envelopes -' class='form-control' output='bootstrap']
</div>
</div>
</div>
<div class="row" style="background-color:#e8e8e8; margin-top:10px;">
<div class="col-sm-3">
[cred_field field='form_submit' value='Submit' urlparam='' class='btn btn-primary btn-lg' output='bootstrap']
</div>
</div>
</div>
[/credform]

What is the best way to resolve this?

Many, many thanks,

Doug
====

#1127333

Hello,

Yes, you are right, in the new version of Toolset plugins, we introduced new post type relationship,
https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/

If you have migrated the relationships settings to the new relationships( this is recommended), I suggest you follow our document to generate the form content again
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/

If you are still using the legacy relationships, then you can ignore those messages, it should be able compatible with the latest version of Toolset plugins.

#1127340

Many thanks, Lou Yang.

I'm under a bit of pressure to get this project finished, so I'll keep everything the way it is for the moment as it all sems to be working.

Hopefully, I'll be able to come back to it later.

Thanks again,

Doug
====

#1127342

My issue is resolved now. Thank you!

#1127879

You are welcome