We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37126
    • 37 Posts
    I've trawled the forums and rtfm for a solution but so far haven't worked out how to get the value of a single check box to display on the thanks page for a form. Does anyone have a quick fix for this?

    I've also tried to use Formsave which saves the data perfectly except for the checkbox value.

    The email received from the form however does contain the checkbox value.

    I'm using Revo 2.2.2 and the latest versions of each package.

    Thanks in advance for any advice.

    Mat
      • 37126
      • 37 Posts
      OK well I sussed it then. To pass the checkbox value to my thanks page and to FormSave I changed the following from:

      <input type="hidden" name="color[]" value="" />
      <input type="checkbox" name="color[]" value="blue" [[!+fi.color:FormItIsChecked=`blue`]] > Blue 
      

      To
      <input type="checkbox" name="color" value="Blue" [[!+fi.color=`Blue`:then=`checked`]] id="Blue">
      

      Based on the example for select options