Now, for record purpose, I want my customers to fill a Form, and this form will indicate how many clothes they are giving me to wash. It will also indicate the different Types of clothes they are submitting to me at a particular point in time.
The fields on the Form are:
1.) Serial Number: Auto-generated
2.) Title: Text
3.) Item Description: Text Area
4.) Item Type: Select
5.) Quantity: Number
6.) Featured Image: File Upload/Picture
7.) Submit: Submit Button
Those are the basic Form Information.
THE CHALLENGE
If you take a look at the above form, you will notice that the user can only submit different quantities of one item Type.
But a user that wants to submit different quantities of different item Types will find it difficult using this form.
MY QUESTION
How do I achieve it, in such a way that when the user fills this form for one item Type, the user can have a button that says “Add New Item” and when the user clicks that button, the same fields are duplicated again for the user to fill again and enter new item Type with the same field Types.
Then again and again and again,the user can repeat or duplicate these fields to have an unlimited chance to fill an unlimited number of items as they so please.
How exactly do I achieve this?
Waiting to hear from you soon.
Regards
]]>Let’s say you have a field called “wpcf-your-repeating-field-name”. In that field, you have a value of “Old value”. You want to replace that “Old value” with “New value”. With this SQL command, you can replace all instances of “Old value” with “New value” in your field called “wpcf-your-repeating-field-name”.
Open up your PHPMyAdmin, click on your database name (in the left side bar). Then click on “SQL” in the tabs. Enter this command, and then click “Go”
UPDATE
wp_postmeta
INNER JOIN
wp_toolset_associations
ON wp_postmeta.post_id = wp_toolset_associations.child_id
LEFT JOIN
wp_posts
ON wp_posts.ID = wp_toolset_associations.parent_id
SET
wp_postmeta.meta_value = 'New value',
wp_posts.post_modified = '2019-08-12 14:27:09',
wp_posts.post_modified_gmt = '2019-08-12 14:27:09'
WHERE
wp_postmeta.meta_value = 'Old value'
AND wp_postmeta.meta_key = 'wpcf-your-repeating-field-name'
This command will also update your post_modified and post_modified_gmt fields in the wp_posts table. Generally, it’s probably a good idea to update the modified dates when you do this mass-update of values. Feel free to use update values for that date.
]]>[field_group team id="team" tabindex:1]
<div class="row">
<div class="col-md-6">
<p>Name:
</p>
</div>
<div class="col-md-6">
<p>Title:
</p>
</div>
<div class="col-md-6">
<p>Organization/Affiliation:
</p>
</div>
<div class="col-md-6">
<p>Program Role:
</p>
</div>
<div class="col-md-6">
<p>Phone:
[tel person-phone]</p>
</div>
<div class="col-md-6">
<p>Email:
[email person-email]</p>
</div>
[/field_group]
I have this in my email message code:
[team]
Team Member #[group_index]
Name: [person-name]
Title: [person-title]
Organization: [person-org]
Role: [person-role]
Phone: [person-phone]
Email: [person-email]
[/team]`
When I receive the email, it only shows the first person’s contact information. How can I see the details from the repeatable fields in the email?
Thanks
]]>https://www.ads-software.com/plugins/types/
]]>I’m trying to display ALL values of this repeating field within my single-{custom-post-type}.php
template file. I need to display the values as <img>
tags with the image urls in the src—no separators needed.
I’m following the direction of the documentation, here: https://wp-types.com/documentation/functions/#image, but I can’t seem to get any of the images to show.
I’ve stripped the code down to this:
types_render_field('gallery-images');
But nothing is showing in my page source. No <img>
tags, no image urls, nothing.
Any ideas?
https://www.ads-software.com/plugins/types/
]]>I’m new to wordpress, but i have managed to get quite a bit done. i have made a couple of forms in contact form 7. I now need to make a form in wich there is a set of fields that need to be repeated. they need to be repeated by using a button and creating an extra set of fields.
is this possible in contact forms 7, or should i use a different plugin for this.
i have tried searching for this already many time, but was unable to find a soulution. it could be that i’m searching using the wrong keywords.
with kind regards
Veen
https://www.ads-software.com/plugins/contact-form-7/
]]>The site also uses the WPML multi-language plugin. This plugin gives a warning that repeating fields are not recommended.
Once every while (very random in time, posts and severity) Posts lose their extra repeating fields, only the first one remains and only for translated pages. The original keeps all repeating fields but translations are left with only one.
I have “disconnected” the translations from their master so they should not be overwritten but they still lose their repeating field values. Only one field and value remains, the first and I need to manually add the other fields again for the other languages, very annoying.
How do I prevent repeating fields from being lost?
https://www.ads-software.com/plugins/types/
]]>