We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20906
    • 1 Posts
    Hi everyone

    So first i will explain what i am trying to do.
    I have a container in which i have documents(Each document is an event). A document has tvs for Eventcosts and a dropdown-list of eForm-template-names and a link in the content.
    The link opens the registration form with 3 steps.
    For the 3 steps i followed this thread and its working great. http://modxcms.com/forums/index.php/topic,8572.0.html

    But now i have a problem with some parameters i have to give eForm to choose which tpl it should take.
    I am doing this with $_GET so at the end of the link i have some parameters which have their content from tv´s.
    <p><a href="[(base_url)]Registration-Process.html?registrationForm=[*Event_Registration*]&registrationEvent=[*longtitle*]&eventCosts=[*Event_Costs*]" >Click here for registration</a></p>


    In the Registration-Process Document i call, before eForm, a snippet which is getting the parameters and makes Placeholders out of it.
    if(isset($_GET['registrationForm'])) { // minimal input validation
        $modx->setPlaceholder('RegistrationForm', $_GET['registrationForm']);
    }


    And then i use the Placeholder in the eForm call
    [!eForm? &noemail=`true` &formid=`EventForm` &vericode=`1` &tpl=`[+RegistrationForm+]` &eFormOnBeforeFormParse=`beforeParseFunction` &eformOnBeforeMailSent=`beforeMailSentFunction` &thankyou=`Registration_thankyou` &debug=`1`!]


    When i open the link i can see the form and it seems to work but when i am going to the next pages it says that he could not find the Chunk for the next Step.
    But when i put the name of the chunk in eForm tpl then it does work.
    So it seems like the Placeholder doesnt exists anymore in the second step.
    I am not shure why this doesnt work but do anyone know a way how to do this?

    thanks, nam