PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Conditional Logic and Hidden Fields Workaround

  1. What I am attempting to do is to have users select a background image from a drop down and have the "name-of-my-pic.jpg' value get passed to a Post Body. I have it working but it is not elegant. I wanted to utilize Hidden Fields but they don't allow for conditional logic.
    What might be a better approach?

    See: http://awesomescreenshot.com/054oe4df0 (FYI: screen shot url is only good for 3 days)

    Posted 12 years ago on Tuesday November 15, 2011 | Permalink
  2. Why not use the drop down and not the hidden fields?

    Using the drop down you would set the label of the choice to the friendly name, then enable values and set the value of the choice to the filename. Then configure the merge tag to output the value rather than the label.

    For example, see this screenshot:

    http://dl.dropbox.com/u/185347/Slingshot/Pictures/Screen%20Shot%202011-11-15%20at%204.32.26%20PM.png

    Then for the merge tag for that drop down you would add :value to the end of it like this:

    {My Field Name:1:value}

    That would output the value of that field rather than the friendly label. In this case it would be your file name, which your user didn't see... they just saw the friendly label.

    You can find merge tag documentation here:

    http://www.gravityhelp.com/documentation/page/Merge_Tags

    Posted 12 years ago on Tuesday November 15, 2011 | Permalink
  3. Excellent. Thank you much.

    Posted 12 years ago on Tuesday November 15, 2011 | Permalink

This topic has been resolved and has been closed to new replies.