Jump to content

Contact form with dropdown select as Field


vxda
 Share

Recommended Posts

Hi there, im new to PW, was trying to look for answer in forums but couldnt find any.

My problem is with FormTemplateProcessor.

Im creating fileds via Admin field options and one of my field is "select" im using this plugin -> Fieldtype: Select (AKA Drop Down) .

In Field options i created 3 select option :

  • option one
  • option two
  • option three

In front end side i got my select showing up and it 3 options in it but they are empty like this:

<select id="Inputfield_typeOfArea" name="typeOfArea">
<option value="" selected="selected"></option>
<option value="option one"></option>
<option value="option two"></option>
<option value="option three"></option>
</select>

As you see value is correct but option tag is empty ;/ what im doing wrong ?

Ty

Link to comment
Share on other sites

Hi Ty,

Welcome to PW.

I haven't used either of those modules, so I might be totally off here, but I wonder if the FormTemplateProcessor is incompatible with the Select Fieldtype module. Not sure if you have read about Page fields:
http://wiki.processwire.com/index.php/Page_Field

At first it may seem like more work, but there are lots of advantages to created selects like this, rather than using the select module.

Please try that and let us know how you go.

Also, it would be useful if you show us your template code so we can see how you are initiating the FTP module.

Perhaps someone else who has used both together might be able to chime in with a solution.

EDIT: Apparently I should have looked a how the select module actually works - thanks Soma  :)

Edited by adrian
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...