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.

How to set the max value of the list programatically

  1. The latest release candidate 5 has list.

    1)How to set the maximum number for the rows in the list, through program. May be through hooks or short code.

    2)How to change a field to , read-only/disabled field through program and through the user interface in the admin panel

    3)How to change a field from , read-only/disabled to editable/enabled field through program

    4)How to auto-populate the drop-down menu with the help of the data from the database.
    I want the country list drop-down menu to get auto-populated with the data that I will keep in my database.

    Posted 13 years ago on Monday October 31, 2011 | Permalink
  2. So you are aware, Gravity Forms v1.6 currently has a feature freeze. It's getting ready to be released as a final release later today or tomorrow. So any new features will be part of a v1.6.x subsequent release or be included in v1.7.

    1) So you want a hook that can be used to set the max rows on a list field using code rather than the option in the form editor?

    2) We do plan on adding a Read Only option for field types where it is relevant.

    3) When we implement a Read Only option we will also implement a hook so that it can be done via a hook and not just the form editor UI.

    4) This can currently be done via hooks. Are you looking for something else? If you provide more details and a use case example that would be most helpful.

    Posted 13 years ago on Monday October 31, 2011 | Permalink
  3. I also want that the drop-down menu can be populated at run time , through hooks. I want the data to get fetched from the database and to populate the drop-down menu.

    Posted 13 years ago on Tuesday November 1, 2011 | Permalink
  4. RETRIEVING THE DATA OF THE LIST( DYNAMIC ) FIELDS THAT HAS BEEN SUBMITTED.

    How should I retrieve the data of the list fields ( dynamic ) that has been submitted.
    As the fields are getting generated dynamically, so how to request the data from the submitted form. As we don't have the ID of those fields. Please guide me and please provide us with a sample code.

    Posted 13 years ago on Tuesday November 1, 2011 | Permalink
  5. Hi Bazchas,

    Where do you want to access the data from? Anywhere? or from one of Gravity Forms hooks?

    Posted 13 years ago on Tuesday November 1, 2011 | Permalink
  6. Hi David,

    We like to use it from both.
    From anywhere and also from gravity form hooks.

    Posted 13 years ago on Wednesday November 2, 2011 | Permalink
  7. We have resolved the issue with the pre populated drop-down.

    But please help me out with

    RETRIEVING THE DATA OF THE LIST( DYNAMIC ) FIELDS THAT HAS BEEN SUBMITTED. (Mentioned above)

    Posted 13 years ago on Wednesday November 2, 2011 | Permalink
  8. Hi Bazhas,

    Here is a function that will let you retrieve the value of a submitted list field. You will need to pass the entry ID:

    http://pastie.org/2935996

    For an idea of what value will be returned, see here:

    http://www.gravityhelp.com/forums/topic/list-field-help#post-39904

    Posted 13 years ago on Monday November 28, 2011 | Permalink

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