• I have a form which has a kind of sub-section made with clone -field.

    I tried to add extra validation to one of the fields inside it but af_add_error refuses to work.
    af_get_field does get the value however. Then I can add the error to another input but of course I would like to add it to the right place.

    Can you help?

Viewing 1 replies (of 1 total)
  • Plugin Author fabianlindfors

    (@fabianlindfors)

    Hi!

    Unfortunately af_add_error doesn’t support subfields right now. This is something I want to fix in a future version but it’s a bit challenging.

    I’m not sure but maybe it’s possible to add errors to the parent group field instead. Could you try this and see if it’s a acceptable solution?

Viewing 1 replies (of 1 total)
  • The topic ‘Af_add_error doesn’t accept fields that are inside clone -field’ is closed to new replies.