Creating/Editing a basic contact form in WS.WebTV
support, ws.webtv, home, contents, channels, text, create, edit, contact, form
WS.WebTV includes a basic contant form functionality.
In order to create a contact form you just need to create a page and select the "Contact Form" template.
The default fields
By default, the contact form will include the following fields:
Label |
ID/Name of the HTML form element *** Can't be changed *** |
• Name • Retype E-Mail • Message • Security Question |
name emailretype message question |
The form will be sent to the WebTV's notification E-Mail.
Including additional fields by editing the contact form templates (advanced)
If you have some HTML knowledge, you can include additiona fields to the contact form by editing the corresponding templates, or by adding a new page template to the WebTV theme.
1. Locate the template files
• "V2" Theme:
- public/frontend/v2/page_contact_form.tpl
• "Classic/Default" Theme:
- public/frontend/default/page_contact_form.tpl
- public/frontend/default/page_contact_form.mobile.tpl (Mobile Interface)
2. Download the files to your computer and edit them
Download the files to your computer and edit them.
NOTE: You can use any plain text editor like Notepad, Notepad2, Notepad++, Dreamweaver, etc.
Setting a field as "required"
In order to set a field as required it must have the class "required" like this:
<input name="organization" id="organization" type="text" class="field required" >....
If you want to set a field as optional, then don't include the "required" class, like this:
<input name="organization" id="organization" type="text" class="field" >....
3. Upload and refresh
Upload the edited files to the server (overwriting existing ones) and refresh the WebTV page to see the changes.
Advice: Always keep track of any modification you make to the WebTV so you can re-apply it after updates or reinstallations.