Drupal 7 cutom form in custom template - drupal

I`m new to drupal 7 module development. what I want to do is to create a Search page in which I have the form on top of the page and after submitting the form, will get the result on same page below the form.
Please help.

Broad question, but try using views module (https://www.drupal.org/project/views) with exposed filters for search form. It requires no programming skills - you can do all from back-end. Possibilities are limited eventually, but for some basic search form would do the job.

Related

How to create dynamic options pages for a custom WordPress plugin

I am trying to make a WordPress plugin, for my own personal use and learning. It is a form creation plugin, like many others that already exist, gravity forms, caldera forms and others. I have some things already done, like listing the created forms.
My next step is to create a page called 'new form', or something like that. This page must allow the creation of a form with the fields that the user selects. Create fields of text type, checkbox, textarea and others. With configurable names and options.
Something similar to this type of pages:
Gravity Forms
Caldera Forms:
My problem is, I don't even know how to start. I'm not looking for someone to give me the job done or a step-by-step guide or anything like that. I'm looking for is orientation. I want to know how to start, or where to look for information. Learn, and know if these types of pages are made with the WordPress API and classes, if it is a completely new development, if there are libraries that I can use, etc.
Any advice is welcome. Thank you so much for everything!.

Is there a way to use woocommerce forms on other template?

I need to create a full registration page on my woocommerce site, and, I want to show the default WC forms, eg. form with address autoclomplete, state dropdown list etc...
Please, this is my last big achievement to complete this project.
Will apreciate anny suggestion :)
That's a weird request - try using some popular form plugins, such as Contact Form 7, Ninja Forms or Gravity Forms. they all have the req's you've asked for and can be easily installed and used in any WP site.

how to create a custom contact form on wordpress?

I would like to create a contact form
How is it better make it with plugin or manual?
I have designed the form on a page. I
Now I would like to validate but I would like to use a plugin as jquery-validator. is it possible?
But when I'll look at the browser. I see it out of box from my web.
Some example. I am a little confused. Thank you
use this plug in easy to get this https://wordpress.org/plugins/contact-form-7/
I would highly recommend either Contact Form 7 or Gravity Forms plugins to customize your contact form on your WordPress site, depending on your budget and use, but both of them are really good.
When it comes to how quickly you can create a standard contact form to your website, Contact Form 7 can be the much better, because the plugin is free to use, as for Gravity Forms, it requires you to purchase the plugin, download the archive file, upload it to your website, and then create a form. Only after this step is complete can you publish it. You can find more detailed info here about it and a step by step guide on how to add them and maximize your use of them. Hope it helps! ;)

How to display content submission page to users?

I would like to add a page where users can submit content (not just a comment, but a specific 'content type' including the relevant fields). I could use the regular admin link but that would require alternating the admin theme a lot and also would need to hide/disable things i otherwise need.
Is there a good way to display a submission form to the users through which they can submit content? I was looking for a solution via 'Views' but didn't get far.
I hope i managed to get my point across.
drupal 6 or drupal 7?
in drupal 7 you have the field API that is very helpfull to get the fields of an entity.
in drupal 6 you can create your own form with forms API and run node_save() in the submit function.
If the only problem with using the usual node/add/node-type page is that you don't want users to see the admin theme, then you don't have a problem. You can disable the admin theme for non-admin users - on the permissions page, look for "System / View the administration theme". It's already unchecked by default, I think. Any adminny-type pages they access will use your default public-facing theme.

Is there a customizable form in drupal similar to the contact form?

I need a form to enable user to enter event info in three fields (what, where, and when). Then I would like to be able to present the events in tabular form. I don't know PHP. Does drupal have a module for this purpose?
The content construction kit (CCK) allows you to create content types with custom fields, and automatically produces the forms for those content types. You'll probably also want the date field for the when.
You would use Views to display data as a table.
http://www.drupal.org/project/views
Drupal Form Builder
Will create quick forms for you on the go.
Drupal CCK
This one is a little bit more envolved, but more definitive, common place, and HIGHLY extensible. Here's a nice little tutorial as well.
If you don't want the results (events) to turn into nodes when the user enters the data and submit the form, then you should look into the webform module.
A while back I "demoed" this to my peers by building a "mcdonald's monopoly" tracker that anyone could use to input their pieces and then I setup a view as a block to display the aggregate result for everyone's pieces.
We didn't win anything, but this may be what you are looking for.

Resources