Is it possible to conditionally attach multiple files based on form values

By: Angie Raymond | Asked: 01/12/2025
ForumsCategory: How-toIs it possible to conditionally attach multiple files based on form values
Angie Raymond asked 1 month ago

I want to use a different button  for checkout and attach different pdfs, depending on the form checkbox values, is this possible

Kishore Sahoo replied 1 month ago

Should be possible with custom code. If you need any help happy to work with you.

1 Answers
Victor Font Staff answered 1 month ago

Custom code can make anything possible! Formidable forms have different submit buttons based on the field type, but only one final submit per form. Why do you want to use different buttons for checkout? What’s the business process you’re trying to automate? The more you can explain your goal, the better we can help. We need to understand what you’re trying to do.

Victor Font Staff replied 1 month ago

As for the question you asked in the post's title, the answer is yes with conditional logic after the submit button is pressed.

Angie Raymond replied 1 month ago

<p>Thank you Victor! I have different bundles that each have a different Stripe Payment link (Different Submit Button link) as well as a different emails (offer with attachment). I have a field on a form called "Pick your bundle"; this answer will determine what attachments and what Stripe Payment link I send them to.</p>

Angie Raymond replied 1 month ago

I figured it out! I didn't realize that the Actions after the submit button had conditional logic! So now I have 3 different Confirmations & Emails with conditional logic based on my Pick your bundle form field. This is great - thanks so much for your direction Victor 🙂

Angie Raymond replied 1 month ago

Ran into a hiccup - I don't really want to send the email from the first form action UNLESS the payment is complete! Example: If they choose bundle 1 from the form, I can use a confirmation action to redirect them to the appropriate payment link BUT I don't want to send the email out unless that payment is complete!

Is there a way around using the Payment form through Formidable as I believe there is another % fee per transaction shaved off.

Victor Font Staff replied 1 month ago

I have no idea. I never used Stripe with Formidable. I don't use Formidable for collecting payments.

Angie Raymond replied 1 month ago

I have determined that using the stripe payment form, the confirmations will not even trigger unless the payment is successful. Thanks everyone!

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right