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
Merle Hall replied 2 years ago on June 10, 2022 4:07 PM
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
Wil Ranney replied 2 years ago on June 10, 2022 3:30 PM
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
The Aboundant Support Team
Merle Hall replied 2 years ago on June 9, 2022 3:50 PM
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@
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
...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
Wil Ranney replied 2 years ago on June 9, 2022 2:38 PM
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
Merle Hall replied 2 years ago on June 9, 2022 2:00 PM
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
replied 2 years ago on June 9, 2022 3:44 AM
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