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.

Determine if element was visible on form submission

  1. Hey guys, I have two dropdowns. They both have somewhat complex conditionals where if one is displayed the other isn't.
    I also have a hook for the form submission that gets the form object (and the elements). The issue is that I only want to pull from the dropdown that was visible when the form was submitted (the one whose conditionals were met).

    So is there any way to determine if an element's conditionals were met so that I would know which of the two elements was visible when the form was submitted?

    Thanks

    Posted 12 years ago on Monday August 6, 2012 | Permalink
  2. Do you have a link to this form online somewhere? Sounds interesting.

    Could you compensate somewhat my setting a hidden value in the form based on which condition was met? Then you could read that value and know which element was visible, correct?

    Posted 12 years ago on Tuesday August 7, 2012 | Permalink