I'm running Modx cms and created an eform. I would like user to be able to download a pdf with a filled form. I already know how to create a pdf from a normal text on the page using tcpdf but because of my poor programming skills, I have no idea how to pass form data to pdf.
Is there any easy solution? I would appreciate any help.
Look into eForm's event handler eFormOnBeforeMailSent. It may not be available in old versions of eForm. So make sure you use a current version. You find the eForm documentation in te snippet folder (/assets/snippets/eform) of your MODx installation.
This link may help you, also: http://www.partout.info/example_onbeforemailsent.html
Related
So I am trying to convert a certain type of page view into PDF (and also CSV's but thats another hurdle). The tricky part is that I am using Joomla 3.0 so the ever popular PhocaPDF extension will not work.
So far I have tried using http://docs.joomla.org/Creating_PDF_views, but it ends up throwing errors when referring to JRENDER().
Also I have tried using this extension
http://rootprogress.com/index.php/downloads/root-pdf-content
Which I can get to work but only for the article view. I can tell that this plug-in gets its code using DOMPDF and also grabs the $article from JOOMLA! so I have no idea where it is grabbing the $article variable from (so I can reassign it to my new view).
Has anyone had any success with implementing a PDF generator in Joomla 3.0?
The PDF functionality that used to be there in V1.5 was removed in V1.6, see Changes from 1.5 to 1.6. I don't think anybody put it back in for later versions. You can use a third party component if you really need it.
Joomla 3.3 has the option to print articles, you have just to enable it.
Then if you're browsing with Google Chrome you can easily print the page as PDF.
I asked this question on Adobe's member forums earlier, but it seems getting any responses over there is is pretty difficult. Their website has been so slow today it's borderline unusable.
I'm attempting to add a form variable binding to a PHP document, but after each time I open the menu, type in my name and press OK, it does not show up in my Bindings box.
Here is where it's happening:
and then nothing happens from that:
Can anyone tell me what I'm doing wrong here? Or what I haven't done yet? Does this look like a bug?
Not sure if I described the problem in enough detail. Any responses are greatly appreciated. Thank you
searching through the web via google search i stumbled upon a 2010 forum entry in adobe forums
here is the url form variables don't appear in Bindings panel
That could include a host of all other unrelated issues
1.) is your wamp/xamp server on? or apache?
2.) is the php file you want to bind have a .php extension?
3.) Follow these steps
Add <?php ?> anywhere in your code view
Save the document
Make sure that the document is saved as a file with ".php" extension
Refresh the Desgin View (click 2x on Live View)
Look at the Bindings tab, it should read exactly as Example 1 above
If not, close the document and reopen it again
4.) disable liveVIew
5.) Delete the ".mno" document under the ( _notes ) folder. Just the "no name" document with the .mno extension will suffice. You will be able to create those form variable afterwards.
These were from a lynda.com tutorial with php and cs5
Try these suggestions as mentioned in the URL
I know this has been asked by a few people but I haven't seen the answer. I have a php upload form for a file upload in a div tag. Is it possible to submit the form and upload the file without a page refresh? I haven't found the plugins to work because I want to submit the form with a title and other data attached as well. Any suggestions? I looked at using an iframe, but i'm not sure it will work in an upload.php wrapped in a div tag?
Here is the most simple solution you can use: Image upload without page refresh.
No obligation to use the javascript part, but it gives you the opportunity to show a notice that the transfer has been correctly done.
If you are open to jQuery and want a more open solution, I suggest you to take a look at the jQuery Form Plugin that can manage it all for you, with some extras that could be interesting.
My favourite tool for this is Uploadify. It includes real-time progress indicators, drag-and-drop, etc.
There are other, older solutions as well, including this one. That page has a simple demo that may provide a good example for how to do this on your own.
Honourable mention goes to Dave Walsh's facebook-lightbox, into which you might be able to put a file upload form. Worth a try if you like the look.
Try using something like AIM (http://www.webtoolkit.info/). And you should really get a little more experience on html, php and js.
So for example wikipedia, yahoo answers, or even stack overflow.
I'm trying to create a site that will allow users to create new pages of content to add to my site for other users to view.
I'm reading an introductory book on php/mysql. All i really want to know is will i find what i need in there? Is PHP what i would use to achieve that? Or do i need to use something else?
Also any general suggestions pointing me in the right direction would be greatly appreciated!
Thanks!
Why not just download MediaWiki for your site?
Yes, PHP and MySQL is what you would need, since you are creating dynamic pages. You would use PHP to process the HTML form submits of pages, and use MySQL to store the data. You would then use PHP to list all of the pages that users have made.
I am using modX cms, and would like to have administrators be able to create some form fields in a larger form (basically a label, and form elements of various kind) which is then made accessible to users as a PDF document which is to be downloaded, filled out, saved and sent to appropriate recipients via email as pdf.
The main difference to other similar questions is that i do not want to actually process the CONTENTS of a form and output a PDF, i want to generate a PDF which contains a FORM based on data [field names/types] found in a CMS.
The main purpose of the application is that forms have to be easily administrable, hence the integration with a CMS. Nothing speaks against using and writing custom code and/or libraries.
I would also consider an option of having a PDF which is able to send its results out by itself, but from what i've understood i'd have to purchase the adobe formbuilder package and that would raise the price too much.
Any hints on what libraries/approaches i could use?
Thanks
TCPDF is recommended
see also the link in the bottom on the wikipedia entry . There are a bunch of existing examples and plugins you could copy&paste from.
There's PDFlib, from which you can generate a new PDF from the ground up, or modify an existing one (including add forms). It is, however, fairly pricey, so if you can't afford Adobe's formbuilder, this is probably too expensive as well.