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

    I try to show a customized formit success message based on a value in a hidden field.

    For example, if the hidden field "id" has the value 1, the success message should say:

    "Thank you"

    If it has the value 2, the success message should say:

    "Thank you very much"

    successMessage=`[[if? &subject=`[[+id]]` 
    &operator=`EQ`
    &operand=`1`
    &then=`Thank you`
    &else=`Thank you very much`
    ]]


    But it doesn't work. It shows always "Thank you very much".

    I can't figure out what the problem is and any help is appreciated. [ed. note: shotup last edited this post 14 years, 9 months ago.]
      Modx 2.1.3, PHP 5.2
      • 27117
      • 28 Posts
      I still haven't figured out a way to solve this problem.

      Any help is very much appreciated.
        Modx 2.1.3, PHP 5.2