We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    My goal:
    Add licenseplate number (in a field) on page 1 --> show (result) on page 2

    I tried it with eForm;
    Form with formfield licenseplate --> and added gotoid=`27`
    On the resultpage (27) I added [+license+] in the contentfield.

    It doesn't show the field.
    Is this possible with eForm or do I need to use an other script which saves the value?

    This question has been answered by fourroses666. See the first response.

      Evolution user, I like the back-end speed and simplicity smiley
    • discuss.answer
      • 9995
      • 1,613 Posts
      Fixed by eForm, add:
      &runSnippet=`getKenteken` 
      &eFormOnMailSent=`setKenteken`

      snippet: getKenteken
      <?php
      function setKenteken( &$fields ){
          if (isset($fields['kenteken'])) {
              $_SESSION['kenteken_uitkomst'] = $fields['kenteken'];
          }
          return true;
      }
      ?>

      snippet: resultKenteken
      <?php
      if (isset($_SESSION['kenteken_uitkomst'])) {
      	return $_SESSION['kenteken_uitkomst'] ;
      }
      ?>

      Show result:
      [[resultKenteken]]


      Only there is some cache issues going on which I hope to fix.
        Evolution user, I like the back-end speed and simplicity smiley
        • 9995
        • 1,613 Posts
        I detected there is an issue with YAMS -> Eform and runSnippet.

        The issue:
        When I do a save in the manager the first time and I refresh the page (front-end) I get a blank page??!!
        But only when I do a save in the manager and doesn't matter which page or chunk or whatever..

        Without the runSnippet there are no issues.
        If I remove the eForm in one language its oké too.

          Evolution user, I like the back-end speed and simplicity smiley
          • 9995
          • 1,613 Posts
          remove the runSnippet call out of the eForm call and add it seperate worked like: [!getKenteken!].

          (Thanks to Jako)
            Evolution user, I like the back-end speed and simplicity smiley