Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jesper Weber 54 posts 170 karma points c-trib
    May 10, 2021 @ 09:15
    Jesper Weber
    0

    Validation on custom property editor when nested content element is closed

    Hi,

    I have created a custom property editor with multiple fields. The primary field in the property editor is a text field. If the property is marked as required, a value for the text field must be applied.

    The validation works basically fine, even if I add the custom property editor on an element i nested content. However if the nested content element is closed/collapsed then my validation function in my angular controller is not running and I'm able save and publish even though no value for the text field i provided.

    How can I validate my custom property editor when the nested content element i closed?

  • Mark 122 posts 255 karma points
    Sep 05, 2022 @ 14:51
    Mark
    0

    Hi Jesper, I know this is a somewhat old post now, but wondering, did you manage to get around this in the end? If so, do you have any advice as I am looking to tackle a similar situation at the moment...

    Thanks in advance,

    Mark

  • Jesper Weber 54 posts 170 karma points c-trib
    Sep 06, 2022 @ 06:40
    Jesper Weber
    0

    Hi Mark, No I never found a solution for this :-(

  • Mark 122 posts 255 karma points
    Sep 06, 2022 @ 07:06
    Mark
    0

    That's rather what I expected lol. Might investigate what can be done serverside instead, though I am not sure it's possible in a generic way...

    Cheers for the response though!

    :-)

Please Sign in or register to post replies

Write your reply to:

Draft