We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    I need a little help with the action in my Jot call... I am using <form method="post" action="[+form.action:esc+]#jf[+jot.link.id+]" class="jot-form"> but it’s not working as it should. I have written my own snippet that allows a user to submit information from one page and it’s stored in the database. Since there is multiple submissions, I have made one single landing page with the titles of each submission that takes you to another page that has the filtered result. On the filtered results page, I wish to use jot per filtered result.

    The url string is mysite/filtered-results?id=505

    505 being the id in the database... the correct information related to id 505 is displayed as is Jot but the Url for Jot is not correct.

    [Home]
    ++[landing-page](20)
    +++ [filtered-results](21)

    mysite/filtered-result?amp=&p?id=505#jf7f5e0cb8

    it should be

    mysite/filtered-result?id=505#jf7f5e0cb8

    What is causing the amp=&p? to appear?

      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 33992 ☆ A M B ☆
      • 455 Posts
      How is the url created?
      MODx uses id query for documents so change yours to not conflict with MODx.

      It is better to create URL by $modx->makeUrl(docId). Something like this:
      <?php
      $url = $modx->makeUrl(21) . "&myId=505#jf7f5e0cb8";
      // $url = mysite/filtered-result?myId=505#jf7f5e0cb8
        God loves me. 【ツ】


        MODX.ir (Persian Support)

        Boplo.ir/modx/ (Persian)
        • 25551 ☆ A M B ☆
        • 1,231 Posts
        Hey AHHP! Hope you’re well buddy.

        I decided to write my own mini posting snippet and integrated it in to the submission snippet that works with eform. Seems to work quite well. Jot ran in to a little snag. When I manually changed the url, cos the url was filtered-results?id=505 any comments weren’t exclusive to the id=505 and I understand why, so I wrote my own which works.
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart