ng-admin icon indicating copy to clipboard operation
ng-admin copied to clipboard

field.validation doesn't work in Embedded Entities view

Open RichardBradley opened this issue 7 years ago • 4 comments

When using the "Embedded Entities" edit form, the field.validation(x) function does not update the UI with ticks or crosses

To reproduce:

  • open this Plunkr demo: http://plnkr.co/edit/QW05BXQL2du3LXH1Xbly?p=preview

  • click on "John" on the dashboard

  • click "add new children"

  • I have added the following fields to "user" and "child" (see script.js lines 45 - 58)):

        nga.field('name (vowels only)')
           .validation({pattern: /^[aeiou]+$/i}),
    
    • enter a name like "a" into the "name" field for the user and for the child entity
    • enter a name like "x" into the "name" field for the user and for the child entity

Expected behaviour:

I'd expect both the "user" form and the "child" form to show a green tick for the name "a" and a red cross for the name "x"

Observed behaviour:

The user form has the above behaviour, but the child form has no visible UI validation.

RichardBradley avatar Jul 28 '16 09:07 RichardBradley

+1 experiencing this same issue.

jamespsterling avatar Jul 28 '16 13:07 jamespsterling

Anyone has a workaround? or fix? Thanks

genxstylez avatar Sep 01 '16 05:09 genxstylez

Are we aware of this @fzaninotto ?

genxstylez avatar Sep 11 '16 03:09 genxstylez

+1 experiencing this same issue.

manind007 avatar Nov 28 '16 04:11 manind007