Project

General

Profile

Feature #8962

allow for form fields with identical names

Added by Nicola Chiapolini 23 days ago. Updated 23 days ago.

Status:
New
Priority:
High
Assignee:
-
Target version:
Start date:
29.08.2019
Due date:
% Done:

0%

Estimated time:
Discuss:

Description

We have a form with three Action-Elements all pointing to the same column. Each of them calculates the value based on a different dynamic-update form-field (restricted via requiredList).
This works perfectly, but I need to adjust the name directly in the database...

Could this check be removed? (At least for action elements, but I can imagine this to be useful even with native dynamic-update elements.)

History

#1 Updated by Carsten Rose 23 days ago

  • Priority changed from Normal to High
  • Target version set to 19.9.2

Das sollte moeglich sein.

Moeglichkeit um das flexibel zu konfigurieren:

  • Neue Konfigurationsoption (Store System): feSameName=allow|forbid|action
    • allow: FE Elemente mit identischem Namen ist ok.
    • forbid: FE Elemente mit identischem Namen sind nicht moeglich (Default).
    • action: FE Elemente mit identischem Namen sind fuer Action Elemente moeglich.
  • Der Check in Form.name='FormElement', FE.label='Check Name Conflict' wird wie folgt angepasst:
    sqlValidate={{!SELECT fe.id FROM FormElement AS fe WHERE "{{class:F:alnumx}}"=fe.class AND fe.formId={{formId:RF}} AND fe.name!="" AND fe.name="{{name:F:alnumx}}" AND fe.id!={{id:R0}} AND ('forbid'='{{feSameName:VY}}' OR ('action'='{{feSameName:VY}}' AND fe.class IN 'native,container')  ) }}
    
  • Mit #8963 (Variablen koennen einfach im V-Store gesetzt werden) kann das dann zusaetzlich auf Form.parameter und FormElement.parameter Ebene gesetzt weden.

Also available in: Atom PDF