#
Gravity Forms List field

If I use the List field in the form and send a notification with that field and the text modifier - "{Child:11:text}" - it gives this result:

"Dopey,13,2,None Child's Name(s): Sleepy,10,3,No, but has trouble staying awake Child's Name(s): Happy,10,4,"

There are four fields in the List - Name, Age, Grade, Allergies.  Why does it put the field name before the 2nd child and before the 3rd child???  (my bolding to highlight the field name)

Tried to find something on Gravity Forms to no avail.  Also, tried to join their Community Forum, but I don't fit any of their categories for doing so.  So, if you have the ability to ask this there or have some other support with them, I'd appreciate it.

Merle

Asked 2 years ago on June 9, 2022 12:37 AM Comments 6 times


  1. Generic placeholder image

    Merle Hall replied

    Actually, when I first did this a year ago, I did it without the "text" modifier.  It then plops a table of rich text in the middle of the string.  I think that might actually work if it didn't include the field headers, but there's no way to leave them out.  It looked like this:

    While I'm thinking about it and it's related, I don't have access to the functions.php do I?  Or is there anyplace else to be able to put code.  I'm not sure I want to get in that deep anyway, but thought I'd ask.

    Appreciate the suggestion!

    Merle

  2. Generic placeholder image

    Wil Ranney replied

    Have you tried taking the ":text" off the end. It doesn't seem to fit the schema though maybe you know more than me.

    Pe@ce, Wil

    Thank you,
    The Aboundant Support Team
  3. Generic placeholder image

    Merle Hall replied

    Hey, Wil!

    This is a notification to a person who's keeping a spreadsheet of the entries, since there doesn't seem to be a way for him to get that without giving him Admin rights to the whole site.

    So, I put a comma delimited string in the notification which he can then simply swipe through and copy/paste.

    "{Guardian (First):1.3}","{Guardian (Last):1.6}","{Guardian Email:20}","{Guardian Phone:4}","{2nd_Contact (First):2.3}","{2nd_Contact (Last):2.6}","{2nd_Contact Phone:5}","{Volunteer (First):3.3}","{Volunteer (Last):3.6}","{Volunteer Age:21}","{Volunteer Phone:6}","{Child:11:text}","{Consent:22}","{Donation Options:18}",{Number Attending (Quantity):23.3},{Total Donation:14},{date_mdy}

    ...sends this:

    "Merle","Hall","emgeehall@gmail.com","(515) 201-0059","Second","Contact","(555) 123-1234","Doc","Dwarf","93","(555) 121-1212","Dopey,13,2,None Child's Name(s): Sleepy,10,3,No, but has trouble staying awake Child's Name(s): Happy,10,4,","Yes, I give permission for photos","Scholarship",3,$15.00,06/09/2022

    But the child data from the list was a problem as it doesn't parse correctly.  You gave me an idea, though, which looks like it might work.  I removed the child data from the string and added it below as a regular field, which yields:

    "Merle","Hall","emgeehall@gmail.com","(515) 201-0059","Second","Contact","(555) 123-1234","Doc","Dwarf","93","(555) 121-1212","Yes, I give permission for photos","Scholarship",3,$15.00,06/09/2022

    Full Name Age Grade (in Fall) Allergies/Conditions
    Dopey 13 2 None
    Sleepy 10 3 No, but has trouble staying awake
    Happy 10 4

    ...and he can swipe through the child data separately which then correctly pastes into the spreadsheet.  Only thing I'm not sure about is how he's going to keep the child names associated with the main record, but I think we can figure that out.

    Not perfect, but better!

    Thanks!

    Merle

  4. Generic placeholder image

    Wil Ranney replied

    Merle, if you just have it show "all fields" does it make the same error. Also, can you make sure your code is plain text by copying it into notepad. There could be some hidden characters in there messing things up. 

     

    Pe@ce, Wil

  5. Generic placeholder image

    Merle Hall replied

    I think we may have discussed that at one point, but seems like there were disadvantages to doing it that way, too.  I don't remember/know just what you mean by "contextual fields".  Also, wouldn't the Add button have to add all 4 fields?

    If I make it to today's call, we can discuss further if there's time.

    Thanks!

    Merle

  6. Generic placeholder image

    replied

    I really have no idea, and I couldn't find anything at all that seemed amiss. I can certainly ask Wil to take a look to see if he can find anything.

    You could create series of contextual fields where you have the 4 fields followed by a checkbox for "Add another child to this registration?" If they say yes/check the box, they then get another field. 

    Maybe that would fix things?

    Tim

Recent Tickets
Limits... 2 years ago on December 13, 2022 1:18 AM Login 404 error?... 2 years ago on October 19, 2022 10:24 PM Vanco as a payment option... 2 years ago on June 29, 2022 3:08 AM Gravity Forms List field... 2 years ago on June 9, 2022 12:37 AM Post SMTP 2 years ago on April 28, 2022 5:53 PM Gravity forms - bulk rese... 2 years ago on April 18, 2022 2:03 AM background image change... 2 years ago on April 6, 2022 7:22 PM I want to buy need some e... 2 years ago on March 30, 2022 6:02 AM Gravity form module not s... 2 years ago on March 20, 2022 12:35 AM Link to article cited in ... 2 years ago on February 24, 2022 9:27 PM