Skip Navigation

[Resolved] Can´t get the Parent prefilled in Childform

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.
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)

This topic contains 0 replies, has 1 voice.

Last updated by SteffenM1628 6 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1165014

Hey there,

I am trying to:
I just want to prefill the parent field i a child form. but it does not work as i have expected it.
here is the form:

[credform]
	[cred_field field="form_messages" class="alert alert-warning"]
	<div class="form-group">
		<label>Bewerbung Title</label>
		[cred_field field="post_title" class="form-control" output="bootstrap"]
	</div>
	<div class="form-group">
		<label>Vorname</label>
		[cred_field field="vorname-bewerbung-get" force_type="field" class="form-control" output="bootstrap" value='[wpv-user field="user_firstname"]']
	</div>
	<div class="form-group">
		<label>Nachname</label>
		[cred_field field="nachname-bewerbung-get" force_type="field" class="form-control" output="bootstrap" value='[wpv-user field="user_lastname"]']
	</div>
	<div class="form-group">
		<label>Email (Bewerbung)</label>
		[cred_field field="email-bewerbung-get" force_type="field" class="form-control" output="bootstrap" value='[wpv-user field="user_email"]']
	</div>
	<div class="form-group">
		<label>Email (Job für Mail)</label>
		[cred_field field='email-job-get' force_type='field' class='form-control' output='bootstrap' value='[types field='email-job' output='raw'][/types]']
	</div>
	<div class="form-group">
		<label>Frage 1</label>
		[cred_field field="frage-1" force_type="field" class="form-control" output="bootstrap"]
	</div>
	<div class="form-group">
		<label>Frage 2</label>
		[cred_field field="frage-2" force_type="field" class="form-control" output="bootstrap"]
	</div>
	<div class="form-group">
		<label>[wpv-post-title]</label>
		[cred_field field="frage-3" force_type="field" class="form-control" output="bootstrap"]
	</div>


	<div class="form-group">
		<label>Unterlagen</label>
		[cred_field field='unterlagen' force_type='field' class='form-control' output='bootstrap']
	</div>

	[cred_show_group if="( $(unterlagen) eq '2' )" mode="fade-slide"]<div class="form-group">
		[cred_field field="unterlagen-hochladen" force_type="field" class="form-control" output="bootstrap"]
	</div>[/cred_show_group]
	[cred_show_group if="( $(unterlagen) eq '1' )" mode="fade-slide"]
	<div class="form-group">

//this is the parent select field:
		[cred_field field='@lebenslauf-bewerbung.parent' class='form-control' output='bootstrap' select_text='--- nicht eingestellt ---' author='$current' value='[wpv-post-title item="@lebenslauf-bewerbung.parent"]' readonly= 'true']
//but in the front end forms it deas not show the parent preselected

      </div>[/cred_show_group]
	




	[cred_field field="recaptcha" class="form-control" output="bootstrap"]
	[cred_field field="form_submit" output="bootstrap" value="Einsenden" class="btn btn-primary btn-lg"]
[/credform]