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.

Barcode Plugin

  1. dvent
    Member

    Hi All,

    When a user submits a form, the results can be sent in an email.

    Is there a way that this string or set of results could be converted to a barcode and sent as part of the results?

    Thanks
    dvent

    Posted 12 years ago on Friday March 2, 2012 | Permalink
  2. Hi, dvent,

    You can use the Gravity Forms hook gform_pre_submission_filter (http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter) to modify the contents of the email being sent out. I am not sure what you are using to actually generate the barcode, but if it is an image, you can include the URL to the image in your email if you save it on the filesystem somewhere, or send it as an attachment. Attachments were added in a recent version of Gravity Forms, so you need to make sure you have at least 1.6.3. See the documentation here for more info on the attachments (http://www.gravityhelp.com/documentation/page/Gform_user_notification_attachments)

    Posted 12 years ago on Thursday March 8, 2012 | Permalink
  3. Reto
    Member

    Hi Dana

    I'm new to Gravity.. but i have some similar problem. Maybe you can tell me if "the way i like to go" shows in the right direction.

    1) i make a form with some question (thats easy with your plugin ;-)
    2) i would like to transfer the input of the question into plain text with a ";" as delimiter for the fields
    3) i like to transform the plain text into a QR Barcode - via wordpress plugin like super cool qr code ( [qrcode]content[/qrcode] ) or maybe some external transformation
    4) show it on the screen or send it with email.

    Regards, Reto

    Posted 12 years ago on Friday March 9, 2012 | Permalink
  4. Hi, Reto,

    I am not sure how the integration with the Barcode plugin works, but you could use the same hook that I mentioned to send it in an email. If you want to show it on the screen upon form submission, you could get your barcode image (or whatever your plugin makes) and add that to your confirmation message using the hook "gform_confirmation" (http://www.gravityhelp.com/documentation/page/Gform_confirmation). Or, you could have a second page on the form and use the data submitted on the first page to display the info on the second page using the gform_pre_render (http://www.gravityhelp.com/documentation/page/Gform_pre_render) hook.

    Posted 12 years ago on Friday March 9, 2012 | Permalink
  5. Reto
    Member

    Hi Dana

    Thank you very much with your help. I got my first version running with the gform_confirmation hook.

    Reagrds, Reto

    Posted 12 years ago on Saturday March 10, 2012 | Permalink

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