We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4791
    • 10 Posts
    I’m trying to make it so that users are forced to fill in the image description fields that appear following uploading an image. Is there a way to force this?
      • 7923
      • 4,213 Posts
      Not really.. The easiest way to do this would be to add validation using javascript what is executed before form is submitted.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 4791
        • 10 Posts
        Thanks. I think that would work fine (it doesn’t need to be advanced).

        Where would I insert the Javascript? I’ve taken a look but I’m not very familiar with PHP at all. I presume this would be added into the MaxiGallery.php file but I’ve no idea where. Any ideas?
          • 7923
          • 4,213 Posts
          No you can add the js to maxigallery templates.. Create a new chunk with the contents of default manageOuterTpl and add your js there. Then define your custom template in maxigallery snippet call. See wiki page for more info about the templates.

          manageOuterTpl is used for the picture management, so the js will go to the correct place.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."