We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3722
    • 171 Posts
    I have eForm setup to add photo galleries for different events.
    I want to add a Template Variable with a date of the the event.
    This is not the date when the gallery is created.

    I create a TV "galDate" and set it up with the Widget - Date Formatter.
    In the form, only the field shows up, not the pop up calendar format.
    The pop up calendar shows up when viewing in the manager field.

    Is there a way for the form to display the pop up calendar?

    This is the template set up for my form:
    [+validationmessage+]
    <form method="post" action="[~[*id*]~]" enctype="multipart/form-data">
        <input type="hidden" name="formid" value="newResourceForm" />
        Title :<br/><input type="text" name="title" size="40" maxlength="40" eform="Title::1" /><br/>
        Date:<br/><input type="text" name="date" value="[*galDate*]" eform="date" />
        <br/><br/>
    
    <input type="hidden" name="content" value="content" />
        <br/><br/>
        <input type="submit" name="submit" value="Submit">
    </form>
    


    Thanks
    BG66
    • The way I've enabled image and file browsers in other forms is to examine how the TV does it, and pretty much copy the TV's code into the form. Take a look at lines 31 - 43 of manager/includes/tmplvars.inc.php
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 3722
        • 171 Posts
        I am back at this trying to solve this issue.
        I just updated the EVO site to 1.08 and everything is working well.

        There is a text box showing up on the form, but the date picker widget is not working.
        You can only enter text into the field.
        The date picker is working in the back end once the gallery is created.

        This doesn't seem like this should be so difficult.
        I have searched throughout the forum and could not find a solution.
        Has anyone been able to get the date picker working in a form?

        Thanks
        BG66