How to Use the Form Wizard feature of Phpcms V9

Source: Internet
Author: User
Tags html form

This article mainly introduces how the Form Wizard function of Phpcms V9 is used, and it is explained by several cases. First, let's talk about how V9 's Form Wizard can be used to create a form, which is often used as a message board. Or in the recruitment column as a personal information for users to fill out the application form. For forms, the default template is placed in the./phpcms/templates/default/formguide/. There are three files in the folder index.html table of the foreground, show.html Single form display, Show_js. HTML Form plug-in, the form as a functional module, often as a plug-in embedded in the page, rather than a separate model, so the template used is Show_js. HTML Template page. 1. The first step is to create a new form using the Form Wizard 2. each form corresponds to a calling JS code, as shown in the input box below the calling entry <script language= ' javascript ' src= ' {app_path}index.php?m=formguide &c=index&a=show&formid=12&action=js&siteid=1 ' ></script>3. adding the calling code to the other Templates page is ok.
case one use V9 Background Form Wizard to do the message board function of the foreground

Application Scenarios for the Form Wizard:

Before making a form: Assign the Formguide folder under the default folder to the template folder you want to do.

If a foreground page is just for submitting form data, then it is very suitable for the functions of the Form Wizard, such as the following message board case; If a foreground page is not just for submitting a form, it also requires that the content of the submission form be displayed on the current foreground page, which is not appropriate for the Form Wizard. More suitable for installation as a module or plug-in, such as the front page needs to display user message information situation

As follows:

1, enter "module"

2. Select the Form Wizard

3, click "Add Form Wizard" in the "name" fill the "message board", and then "table name" fill in "Liuyanban", and then "allow visitors to submit form" column Select "Yes". OK again.

4, this time there is a "message board" information, and then we found in the following "add field."

5, click "Add Field" in the first row "field type" selection, we generally see the message board the first column is "title" Right, and "title" is a "single line of text", then we also choose "Single line of text." Then the second column "field type", here is the table name placed in the database, used to hold the "title" data, then I will fill in a "title" Pinyin abbreviation: Biaoti. Next is the field alias, and we'll just write "title". The following is the "field hint", here can not fill, but in order to let users better experience, we still fill in a hint is better, fill in the "Please fill in the title." The following is the "related parameters" fill in, "title" text box length is generally filled with 50 bar, the default value can be written to write. Then the others will be used in the tube, submit it directly. After the submission, we will find that the field we have just added has come out, we can click on the "Preview" button above to see the effect, how? Is there an input box that fills in the title?

6, Next we continue to add fields, according to our needs, we add: message people, gender, contact phone, message content and other fields. Note that like "message person" and "contact phone" When you select a field type, you can select single line of text as "title", "Gender" selects "Options" when selecting a field type, and "message content" to select "Multiline text" or "editor".

7, after all the fields have been added, we go back to "module" under "Form Wizard" here. We can see that there is a "call" script behind "message board", we put this script in our production of the Message Board template page can be used, as follows:


This article mainly introduces how the Form Wizard function of Phpcms V9 is used, and it is explained by several cases. First, let's talk about how V9 's Form Wizard can be used to create a form, which is often used as a message board. Or in the recruitment column as a personal information for users to fill out the application form. For forms, the default template is placed in the./phpcms/templates/default/formguide/. There are three files in the folder index.html table of the foreground, show.html Single form display, Show_js. HTML Form plug-in, the form as a functional module, often as a plug-in embedded in the page, rather than a separate model, so the template used is Show_js. HTML Template page. 1. The first step is to create a new form using the Form Wizard 2. each form corresponds to a calling JS code, as shown in the input box below the calling entry <script language= ' javascript ' src= ' {app_path}index.php?m=formguide &c=index&a=show&formid=12&action=js&siteid=1 ' ></script>3. adding the calling code to the other Templates page is ok.
case one use V9 Background Form Wizard to do the message board function of the foreground

Application Scenarios for the Form Wizard:

Before making a form: Assign the Formguide folder under the default folder to the template folder you want to do.

If a foreground page is just for submitting form data, then it is very suitable for the functions of the Form Wizard, such as the following message board case; If a foreground page is not just for submitting a form, it also requires that the content of the submission form be displayed on the current foreground page, which is not appropriate for the Form Wizard. More suitable for installation as a module or plug-in, such as the front page needs to display user message information situation

As follows:

1, enter "module"

2. Select the Form Wizard

3, click "Add Form Wizard" in the "name" fill the "message board", and then "table name" fill in "Liuyanban", and then "allow visitors to submit form" column Select "Yes". OK again.

4, this time there is a "message board" information, and then we found in the following "add field."

5, click "Add Field" in the first row "field type" selection, we generally see the message board the first column is "title" Right, and "title" is a "single line of text", then we also choose "Single line of text." Then the second column "field type", here is the table name placed in the database, used to hold the "title" data, then I will fill in a "title" Pinyin abbreviation: Biaoti. Next is the field alias, and we'll just write "title". The following is the "field hint", here can not fill, but in order to let users better experience, we still fill in a hint is better, fill in the "Please fill in the title." The following is the "related parameters" fill in, "title" text box length is generally filled with 50 bar, the default value can be written to write. Then the others will be used in the tube, submit it directly. After the submission, we will find that the field we have just added has come out, we can click on the "Preview" button above to see the effect, how? Is there an input box that fills in the title?

6, Next we continue to add fields, according to our needs, we add: message people, gender, contact phone, message content and other fields. Note that like "message person" and "contact phone" When you select a field type, you can select single line of text as "title", "Gender" selects "Options" when selecting a field type, and "message content" to select "Multiline text" or "editor".

7, after all the fields have been added, we go back to "module" under "Form Wizard" here. We can see that there is a "call" script behind "message board", we put this script in our production of the Message Board template page can be used, as follows:

How to Use the Form Wizard feature of Phpcms V9

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.