Hi @fitnsexy,
Thanks for reaching out! I understand you’re building a large multi-page form with repeating layouts and want to copy these layouts without the “(copy)” label being added.
When you duplicate a field or layout in WPForms, the new element automatically gets a “(copy)” suffix added to its label. This is to help differentiate between the original and the duplicated element.
If you want to duplicate layouts without the “(copy)” label, this requires custom code. Here’s a JavaScript snippet that should help you to achieve this:
// Add this code snippet in WPCode as a JavaScript snippet
jQuery(document).ready(function($) {
// Listen for 'wpformsFieldAdd' event
$(document).on('wpformsFieldAdd', function(event, fieldID, type) {
// Get the label input for the new field
var $newFieldLabel = $('#wpforms-field-option-' + fieldID + '-label');
if ($newFieldLabel.length) {
// Get the current label value
var label = $newFieldLabel.val();
// Remove '(copy)' from the end of the label if present
label = label.replace(/\s*\(copy\)\s*$/, '');
// Update the label input without '(copy)'
$newFieldLabel.val(label).trigger('input');
}
});
});
In case it helps, here’s our tutorial with the most common ways to add custom code like this. For the most beginner-friendly option in that tutorial, I’d recommend using the WPCode plugin.
Please note that providing custom code solutions like this is outside our usual scope of support. We’re happy to share this snippet as a courtesy, but we can’t offer in-depth support for customizations.
The Layout field is available only with WPForms Pro. If you’re using the paid version of WPForms and have an active license subscription, please submit a support ticket through your WPForms account dashboard if you have any further questions. From there, our support team will be able to take a closer look at your requests.
Thanks!
Thx for your support, it helped me a lot.
Hi @fitnsexy,
You’re very welcome! I’m glad to hear that the code snippet helped you.
It looks like you’ve marked this post as resolved. If you’d like more help with using WPForms Lite, please feel free to reach out.
Thanks!