I'm using the solution listed here: https://wordpress.org/support/topic/convert-form-output-to-pdf-attachment to create a pdf using form data with fpdf and contact form 7 on a Wordpress build.
Does anyone know how to attach the pdf to one particular form?
This solution works great but it seems to attach the pdf to all contact 7 forms. Is there a way to have it only attach to a specific form for those of us that have multiple forms on one site. Maybe by form id?
Thanks,
Have solved it. Used the following variable and if statement.
$id = $contact_form->id();
if ($id==16) where 16 equals the id of the contact 7 form
There's probably more efficient solutions but I'm not proficient in PHP.
Related
I'm trying to figure out how to make an images stack on one another based on options chosen using radio buttons in Gravity Forms. I have been searching for a week now and can't find any way to make this happen.
Here's an example of what I would like to achieve using Gravity Forms:
https://www.woocommerceproductconfigurator.com/configurator/configure/312
I read online that this is possible to do in HTML/CSS with the help of jQuery.
Does anyone know if this is possible to do in Gravity Forms and how I would go about getting started?
I have a laravel based admin.
I'm looking for a PHP library which will help me to build dynamic forms.
By dynamic forms - I mean for example, when the user checks a radio button - new options will appear.
I can build one form using the basic laravel form builder and jQuery.
The thing is - I may have hundreds of such forms, I don't want to build each one of them manually.
Storing them in some kind of model which will be translated to a form is what I'm looking for.
Can you think of a PHP lib which will help me to achieve what I'm looking for?
Are there any other practices ?
All the form builders I've found are good for basic static forms.
Many thanks.
Amir
This is not done by PHP. This is work for JavaScript because you don't want to reload page with every click. You can use some framework like AngularJS or simple AJAX.
AJAX tutorial : http://www.w3schools.com/ajax/
AngularJS tutorial: http://www.w3schools.com/angular/
I have a tournament with multiple divisions and multiple forms for which I use gravity forms.
There are times when someone requests to be changed to a different division. However, I am unable to move the competitor from one division to another in gravity forms, as the divisions are each using a different form ID (and they have still not developed a method for helping with this).
How would I go about moving a SINGLE ENTRY from one gravity form to another forms entry list please.
We have many teams at the tournament, so mass export and import is not what i am looking to achieve. Its about being able to move a single entry from one list of entries in one form to another forms list of entries?
ANY help would be greatly appreciated. Even a simple "use this method" in general terms will help me greatly. Would I use some form of JQuery fiddle, a php script, an sql script or what please as Import Entries is not available currently in GF
Regards
You can not do that, but instead maybe you shold design your form to include all types of submissions logic. I mean you can put a drop-down field at the beginning of your form. Then you can use https://gravityview.co/ to edit your single entry field.
I have a workaround for this which i am using in one of my current projects for http://projects.dzign-r.com.au and that is,
1) export both of the the forms (i.e the one from which you need the field to move and the other to which you need this field to be moved to) and it exports these as json files
2) search for the field ID that you need to be moved to another form, cut its json code from the json file and paste it in the other form's json file where you need it to be moved to
3) then import the form back. and test it to make sure it works as you want it, (as a caution you may change the field ID after you paste it in new form to be something which is not used in this form already).
4) once u see everything is fine u may just delete the old form?
I have a requirement for a project that allows users to fill in a form partially and then save the progress until they have all the information they require to process the form.
The form is on one page only and our user do NOT register and they must not have to register even for saving progression.
What I need is a way to save a form with all the data a user has inputted and then email the user a URL (the email is captured in the form) which will allow them to continue the form at a later date.
I have very little experience with gravity forms so I am unsure if this is something I am able to do out of the box or if there is a plugin that will assist me.
Any help is much appreciated.
I believe 'Save & Continue' functionality is in the next Gravity Forms version core (1.9). I think beta is due to be released shortly...
According to my understanding of it, this should cover most of what you're looking for.
While I have no experience with it, here is a link to an add-on that claims to save form status:
https://github.com/soulseekah/Gravity-Forms-Saved-Forms-Addon
and here's another one:
http://wordpress.org/plugins/gravity-forms-data-persistence-add-on/
in fact, here's a link to the google search I did. There seems to be several solutions to save the progress of a filled out Gravity Form.
https://www.google.com/search?q=gravity%20form%20save%20progress
I've scoured the forums/web for this answer, but I've failed to come up with a solution.
I have a PHP based form that inputs form data onto a PDF generated by FPDF/FPDI (utilizing a pre-made template). That, in and of itself, is working just fine.
I have one version that is a simple quote; the user can input their email without adding in personal information if they're not ready to move forward. A PDF is created with their quote info. The question has come up on whether or not this generated PDF can have form input fields and a send button, that way the client can send along their newly completed form with their quote information.
Does anyone know of a utility out there that can generate a functional PDF with input fields/send button and also input data from a PHP form?
Whoever can help will be this girl's hero. I may even send you cookies.