Skip Navigation

[Resolved] Display repeatable field groups in form

This support ticket is created 3 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 3 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2247873

Dear Sir/Madam,

I want to create a form to update a repeatable field group, I create an edit form and content template to edit a specific repeatable field like

[cred_form form='update-90days' post='[wpv-search-term param='tid']']

In the form, there is a field

<div class="form-group">
		<label for="%%FORM_ID%%_todo-task-id">[cred_i18n name='todo-task-id-label']Task ID[/cred_i18n]</label>
		[cred_field field='todo-task-id' force_type='field' class='form-control' output='bootstrap']
</div>

I don't want to allow user to edit it, I try to change it with

<div class="form-group">
		<label for="%%FORM_ID%%_todo-task-id">[cred_i18n name='todo-task-id-label']Task ID[/cred_i18n]</label>
		[types field='todo-task-id' format='FIELD_VALUE'][/types]
</div>

but I can't display the field value. Please advise how I can display the field value.

#2248643

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What if you try to display the Types field value using the item attribute.

For example:

<div class="form-group">
        <label for="%%FORM_ID%%_todo-task-id">[cred_i18n name='todo-task-id-label']Task ID[/cred_i18n]</label>
        [types field='todo-task-id' format='FIELD_VALUE' item="[wpv-search-term param='tid']"][/types]
</div>

Does that works?

#2252023
Screenshot 2021-12-24 at 3.21.10 PM.png

Dear Minesh,

Yes, it works

	<div class="form-group">
		<label for="%%FORM_ID%%_todo-task-id">[cred_i18n name='todo-task-id-label']Task ID: [/cred_i18n]</label>
		[types field='todo-task-id' format='FIELD_VALUE' item="[wpv-search-term param='tid']"][/types]
	</div>

I can show the repeatable field title using below code

	<div class="form-group">[types field='todo-task-id' format='FIELD_VALUE'][/types]
      [cred_field field="post_title" class="form-control" output="bootstrap" readonly="true"]
	</div>

I want to show title same as the task-id, I replace the cred_field with types but can't work

	<div class="form-group">[types field='todo-task-id' format='FIELD_VALUE'][/types]
      [types field="post_title"  format='FIELD_VALUE'  item="[wpv-search-term param='tid']"][/types]
</div>

How can I show the repeatable field title, the title show in screenshot.

Best regards,

Kelvin

#2252045

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

To display the post title, you should use the shortcode [wpv-post-title.].

For example:

[wpv-post-title item="[wpv-search-term param='tid']"] 

More info:
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153369