Skip to content

Custom field options #629

Closed
Closed
@dorinniscu

Description

@dorinniscu

In this moment ng-model, id and name are generated based on form.key
I need to set them separately for a multilingual website.

Example:
id and name could be title_en / title_es but ng-model needs to be [en][title] / [es][title].

I can not obtain it only by modifying form.key into en.title / es.title because id becomes title in both cases.

I tried to add id and name options but it does not work as expected.

<input ng-if="!form.fieldAddonLeft && !form.fieldAddonRight" ng-show="form.key" type="string" step="any" sf-changed="form" placeholder="Title" class="form-control ng-valid-schema-form ng-touched" id="title_en" ng-model-options="form.ngModelOptions" ng-model="model['en']['title']" ng-disabled="form.readonly" schema-validate="form" name="title_en" aria-describedby="titleStatus">

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions