• Resolved Stonehenge Creations

    (@duisterdenhaag)


    How can I get more data from the Gravity Form entry directly into Sliced? For instance, phone number is not transferred. Also on the form the client enters first and second name separately, but SI combines them, leaving those fields blanks in the WP User section. Hence: the email template cannot read the first name. ??

    I also have other fields filled out on the form which I need in SI. I now have to let GR post to a custom type with meta entries. Then I have to copy those values into SI.

    How do I hook in the 1 “sending to Sliced Invoices” query so the GF doens’t have to send one as well?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author SlicedInvoices

    (@slicedinvoices)

    Hi Patrick,

    First you might want to consider posting a Feature Request for this on our official page here: https://slicedinvoices.com/developers/feature-requests/.

    That said, you could accomplish what you want with a little custom coding. There is a hook available in our plugin, ‘sliced_gravityforms_feed_processed’, which you can use for these kinds of things.

    For example, the following code would populate first name, last name, and phone number:
    (There is actually no phone number field in Sliced Invoices, so for example purposes this code puts in the “Extra Info” field instead)

    https://gist.github.com/grantalltodavid/4a6f42c89900d9bb6b181a37656ce78b

    …just change the field IDs to match your form. So if “first name” is field ID “1” on your form, change where I put “input_123” to “input_1”, and so on.

    This is just a quick example, but hopefully this gives you some idea of the things you can do. Or, if coding is not your thing, you could just submit a feature request. ??

    Best wishes,
    David Grant
    Developer of Sliced Invoices

    Thread Starter Stonehenge Creations

    (@duisterdenhaag)

    Thank you SO much, David. ??
    Sorry it took me a while to look into it, but it was very worthwhile. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Retrieve more data, please.’ is closed to new replies.