adding two webform to web site - drupal-7

I have used a webform to my drupal 7 website.And now I want to put a webform to another page(two webforms in different web pages).How can i configure webform for it?

Have you used, webform as node, or block? If u have used, webform as block, then u goto admin/block and then configure.
From that page, you can configure, where u want the page to dispaly web form

Create another webform just as u created the previous one.
Log in to your website with admin privileges and click on the Add Content > Webform from the admin menu.
Create a new webform here. After this is saved, you can add the needed form elements.
This new webform is a node and will be listed in the content list page. If you want to render this webform as a block, Go to particular webform, > Edit > Form settings and in the Advanced settings tab, Check the "Available as block" checkbox.
Hope this helps..

Related

Drupal 7 webform

Good Morning.
I'm working on a website built with drupal 7 made by another person.
I'm trying to change the url of a page where there is a webform. If i do it, the page is still there with the new url, but the webform disappears. How can I avoid that?
Thanks
That webform probably was set as block to be displayed on certain page URLs only.
You can check in the block section (admin/structure/block), if that webform exist, click configure and see the "Visibility settings" at the bottom. You can change the restricted URL in that settings to "node/[nid]" format instead of the friendly URL so it will still work if you change the URL again in the future.

How do I link a Wagtail custom form to its output?

When a custom form is created in Wagtail, I can see that it stores in the DB. What I'm not clear on is how to make it so that the admin UI contains the results in some manner. (A new link which lets you download a CSV would be fine, but I don't see how to do that)
How do I allow admin users the ability to see the results of the custom forms? Is this library the only way?
Once you create your first form page (i.e. a page of any page type that subclasses AbstractForm), a 'Forms' item will automatically appear in the left menu of the Wagtail admin. This provides a listing of all the form pages that exist on the site, allowing you to access the results of each one and download them as a CSV.

Symfony2 Sonata admin bundle: Non CRUD page

I have setup a symfony2 project with sonata admin bundle.
it works fine. I can generate listviews and detail form for each entity.
But i want to create a new menu entry in left admin menu.
This new entry is not linked to an entity.
I just want to show a textarea and store result in a file (for testing first).
Do you know I what should I do ?
In the sonata_admin section of your config, under the dashboard section you can see your groups, which are displayed in the left site navigation. There you can add a item, which links to your own, custom service.
Visit https://sonata-project.org/bundles/admin/master/doc/reference/architecture.html to see how you can create your own admin service.

Can we use drupal AHAH in webform module of drupal 7

I intend to add dynamically fields like text boxes, radio buttons, checkboxes ,select boxes on a click of button like "ADD More".
I heard we can use AHAH to add fields dynamically, since I used a webform module to build my form, can I still be able to use AHAH to add the feature of "dynamically addition of fields" ?
I found an alternative solution, Simply used php files in building web pages and got the required functionality.
Simple web pages will have an option to add php scripts directly. And relying on AHAH is No- No for the required functionality.

Webform: how to set confirmation message

I'm trying to set a confirmation message on my webform.
I'm using the standard redirect to confirmation page option when a form is submitted.
I clicked every single link in my webform backend and can't find it anywhere. All search results regarding this issue lead to programming a custom module to display a confirmation message in a popup or redirect to a different confirmation page. I don't want to do any of that, just a simple edit of the standard confirmation message.
I've looked through the webform-confirmation.tpl.php file in the module and see that it just prints a $confirmation_message variable. I don't want to edit it there as I want to be able to translate the string in the drupal admin section.
Surely this must be available somewhere?
When you edit the webform there are four tabs at top right side: Display, Edit, Webform and Results (look at screenshot: https://dl.dropboxusercontent.com/u/207644/screenshot-webform.jpg). Click on Webform tab. If you don't see this tab you have problem with user rights maybe.
On Webform tab are 3 subtabs: Form components, E-mails and Form settings. You must click on third - Form settings. Finally there is section "Submission settings" where you can setup confirmation message.

Resources