Autoincrement field key

Created on 17 April 2023, about 1 year ago

Hi,

Sometimes some clients want to add a field multiple times, like multiple firstname or lastname fields.
Keys are a hard thing to understand for most clients, and they really don't care about it.

Could there be an option to autoincrement field keys for something like firstname, firstname_0, firstname_1 if the name is the same ?

Thank you.

✨ Feature request
Status

Closed: won't fix

Version

6.2

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland Mistrae

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Mistrae
  • Status changed to Closed: won't fix about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    The problem with autoincrementing is the element's key stops updating with the element's title.

    For example, if someone duplicates a 'First name' (first_name) element and we change first_name to first_name_01, the user might want to change the title to 'Patient First Name' and want the element's key to automatically be 'patient_first_name'

    This feature should not be added to the core webform module but should be possible with custom code or a dedicated contribs module.

Production build 0.69.0 2024