Search the Community
Showing results for tags 'formtemplateprocessor'.
-
I'm trying to use this code: $this->set('successMessage', '<h2 class="enviado-ok">' . wire('pages')->get("/$page->name/")->mensaje_form_enviado .'</h2>'); inside the init function of FormTemplateProcessor.module and is giving me this error: Notice: Undefined variable: page in /home/pruebase/public_html/site/modules/FormTemplateProcessor/FormTemplateProcessor.module on line 92 Notice: Trying to get property of non-object in /home/pruebase/public_html/site/modules/FormTemplateProcessor/FormTemplateProcessor.module on line 92 This is probably because I'm not really good at php and I guess I can't use the $page variable inside the function right? Does anyone know how could I make this work? Thanks very much.
-
Hi! I´m working on callback solution for my client using the FormTemplateProcessor module. It works fine but i want to get the numbers only once. The template have only one field "title" formated as phone number. Any ideas? Frontend: Backend: --------------------- I had a bad approach, trying to find a field and compare it with the input field. I have just done it with a temporary cookie. It´s not perfect but it works.
-
Hello, I'm using FormTemplateProcessor module to dynamically create pages and save data. But for some reason, it's not showing title field in the form that's being rendered on the front-end. Also when the page is being created, right now, it's auto-generating some name, I'd like it to have title. I want to know how to Get title in the front-end form & save it along with the rest of the data. Save page with its name rather than auto-generated name. Thanks in advance.
-
Hey, I've a problem,witch i cant solve by myself so I hope you have any ideas what to do: I want to use FormTemplateProcessor here are my settings: A template called contact_form with two fields - contact_mail and contact_text - no template file associated. A template called contact with standard fields - title + body + images and so on - associated to contact.php <?php /** * Kontakt Seite * */ include("./head.inc"); ?> <div class="main wrapper clearfix"> <article class="clearfix"> <h2><?php echo $page->get("headline|title");?></h2> <?php echo $page->body; ?> </article> <?php $form = $modules->get('FormTemplateProcessor'); $form->template = $templates->get('contact_form'); $form->requiredFields = array('contact_email'); $form->email = 'mail@mail.com'; echo $form->render(); ?> </div> <!-- #main --> <?include("./foot.inc"); ?> This looks fine to me and if i try if it works on frontpage, everything seems to work. I got the message, that my submission has been sent. BUT I got no Mail. I've tested it with various e-mail addresses, checked my spambox, but I cant find a mail from my form. I've thought, that maybe there might be something wrong with my Server, but the log-file seems fine to me: 188.111.105.10 - - [21/Jan/2013:10:07:48 +0100] "POST /kontakt-email/ HTTP/1.1" 200 4643 "http://www.mydomain.de/kontakt-email/" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0" "www.mydomain.de" I don't know where to search for errors. Perhaps I have to mention that I'm using a various admin path... Would like to hear your advices. Many greets, Jens alias DV-JF
- 3 replies
-
- Contact Form
- Form
-
(and 1 more)
Tagged with: