Skip Navigation

[Resolved] User form with pre filled values

This support ticket is created 5 years, 2 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Shane 5 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1538475

Tell us what you are trying to do?

I want to create a form (accessed via the public interface) to records information about participation of an event (Name, Firstname, # participants, e-mail and so but no title). Because I have many events (only description, and date change).

I've created a custom type named representation ( = event) and an other inscription (participation of the event) with a publication reference field pointing to the representation.

When I display the representation I want to have the form (permitting users to register for this representation) directly included with the representation reference already prefilled (or hidden but filled).

Is it possible ? And if yes how can I do that ?

Regards

#1538753
inscriptions_list.png

Hi again,

I solve a part of my problem in expert mode i put this :

	<div style="display:none;">
		[cred_generic_field field='representation' type='integer' class='' urlparam='']
{
"required":0,
"validate_format":0,
"persist":1,
"default":"[wpv-post-id]"
}
		[/cred_generic_field]
</div>

Now I've got issue with the title of the "inscription" title. I do not need the CRED auto draft title to be displayed when I show the list of "inscription" in the wordpress admin. But I need to display the title of the referenced "representation". How can I do that ?

Regards

#1539017

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Thibaults,

Thank you for getting in touch.

Actually its because the post title field is missing. You will need to add this to your form.

		[cred_field field='post_title' class='form-control' output='bootstrap' value='[wpv-post-title]']

Please let me know if this helps.
Thanks,
Shane