additional conditions to validate

This topic contains 5 replies, has 3 voices, and was last updated by  Myrianne 7 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #283363

    Myrianne
    Expired Member
    Post count: 48

    id like to add a “minimum of 3 selected” requirement on a field. any ways to do this on the system – if not – can I add some js to do it, and what validation hooks/technique could I use…

    id like to have minimum of 3 selected on http://intouchdev.wpengine.com/ for the “Sélectionnez vos empreintes” field

    thanks

    #284010

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I flagged this for the developers, I’m not 100% sure it is possible.

    They’ll let you know asap.

    Thanks

    #284020

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There is no standard way to do this you would have to add custom JS code.

    Stiofan

    #284777

    Myrianne
    Expired Member
    Post count: 48

    I see the /wp-content/plugins/geodirectory/geodirectory-assets/js/listing_validation.min.js
    file is doing the validation and have added the extra js in there to validate my field, but im worried that a plugin update would break that functionality.

    i know you can unqueue scripts and replace them with a modified copy that lies inside you child theme… would that be the best way to go?

    Would there be a way to just add some js on top of the present validation without touching the plugin code?

    If I wanted to add some server-side php logic to the fields saving – is there a hook for that?

    thanks for your support

    #284860

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I would not add my code there, if its just a small snippet just add it under GD>Design>Scripts

    There are hooks to do almost everything, you would need to be specific 🙂

    Stiofan

    #304332

    Myrianne
    Expired Member
    Post count: 48

    ok thanks, ive figured it out, you can close 😉

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket