We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53118
    • 28 Posts
    Hello,

    it is very strange with formit

    redirectTo=`41` <=== Works perfectly
    redirectTo=`[[!*myPlaceholder]]` <=== Does not work

    FormIt is called uncached

    Do you know what's going on ? Can I avoid this ?

    Thank you smiley

    This question has been answered by multiple community members. See the first response.

    • discuss.answer
      • 17301
      • 932 Posts
      it looks like you're calling a template variable and not a placeholder. It might help if you post up your complete code so we can take a better look at what you've got and what you're trying to achieve.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 53118
        • 28 Posts
        yes you are right it was a TV actually

        and the content of this TV was another [[!++context setting]]

        this is why it was not parsed within FormIt

        I am surprised because if i put [[!*myPlacedholder]] ( or [[!*myTV]] ) directly into the html template the value is properly retrieved from the context setting and properly displayed

        but when [[!*myPlacedholder]] ( or [[!*myTV]] ) is called from within !FormIt it's not computed properly

        I solved this issue by directly calling the context setting instead of the TV

        thanks for the help LK ! smiley
        • discuss.answer
          • 3749
          • 24,544 Posts
          Using the exclamation mark to make the placeholder uncached delays its processing, so when the outer tag is processed, the value has not been set and FormIt tries to process the tag itself rather than its value.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting