Skip Navigation

[Resolved] single post page and post form display on same page

This support ticket is created 5 years, 7 months 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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 7 replies, has 2 voices.

Last updated by franciscos-9 5 years, 7 months ago.

Assisted by: Nigel.

Author
Posts
#1242753
step 2.png

Tell us what you are trying to do?
im trying to put on single page a display of custom post equipment item. and post form that will get parameter from
the displayed item. to pass parameter from display item to post form. parameter are prices for the item

Is there any documentation that you are following?
maybe https://toolset.com/forums/topic/passing-value-from-a-html-form-field-to-a-cred-field/

Is there a similar example that we can see?
see image
What is the link to your site?
hidden link

#1242763

hidden link

#1242922

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

You are displaying a custom post (directly? at the URL for the single post) and the post contains a custom field.

You have a Form displayed alongside the post and you want the Form to have the value of the field available (to set the value of some field in the Form).

Is that correct?

#1245257

sorry late reply, yes correct set value to form. then if user clicks on form, to allow the user to email the form.

#1245771

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-05-20 at 11.20.49.png

When displaying a form the context is the page or post where the form is displayed.

If I were to output a custom field value somewhere in the markup of the form the value would come from where the form is displayed, e.g.

[types field='capacity' output='raw'][/types]

appearing somewhere in my form would output the value of a field named 'capacity' from the post where the form is being displayed.

So when editing a Form you can provide a default value for fields, and you can use a shortcode to provide that value, as shown in the screenshot.

Does that cover the use-case you had in mind?

#1246443

yes nicely covers the use case.

#1246449

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

OK, so do you need anything else from me relating to this?

#1246831

My issue is resolved now. Thank you!