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.

Dictate options available via shortcode

  1. Is there a way to dictate which options are available (or not available) in a dropdown via the shortcode?

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  2. David Peralty

    I'm not sure I understand what you are trying to do. Can you give me more information?

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  3. If I had this as my shortcode:

    [gravityforms id=1 field_values='hide=pdf,idml']

    Then, the dropdowns wouldn't show the options with values of "pdf" or "idml."

    Another way to do this would be to use conditional logic, but it appears you can only set that logic on the entire form field and not the individual options within a field.

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  4. David Peralty

    That's correct. The only way to do what you want would be to use PHP and one of our hooks. So the field wouldn't have anything in it, and then based on whatever qualification you want, you could load different lists in the dropdown. Let me know if that sounds like a workable solution, and I can point you to the right hook.

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  5. That's honestly beyond my abilities. I have an ad on oDesk if anyone reading this board wants to apply (or message me here).

    https://www.odesk.com/jobs/Gravity-Forms-plugin_~~9cc71eb752f8bab6

    Posted 11 years ago on Wednesday April 17, 2013 | Permalink