What I love about this is that users of Serendipity no longer need to edit the actual php file to get the result they want. Specifically, small business users are now able to change the contact form so that their form includes input boxes for phone numbers, addresses, gender, even checkboxes to subscribe to a mailing list.
The following snippets can be used to configure the new dynamic contact form, all you need to do is copy and paste them directly into the 'form field string' text box. The lower case (r) means that these are required fields. Enjoy!
Basic contact form with first name (r), last name (r), email (r), homepage, and message.
require;First Name;text :require;Surname;text :require;Email;text :Homepage;text :Message;textarea;Ideally suited for a small business or entrepreneur where the site visitor simply wants to make contact. They are asked for first name (r), last name (r), company, telephone number (r), email (r), homepage and message.
require;First Name;text :require;Surname;text :Company;text :require;Tel;text :require;Email;text :Homepage;text :Message;textarea;This one might be more useful for generating sales leads where the client needs a followup phone call to set an appointment, and includes first name (r), last name (r), gender being Mr, Mrs or Miss, company, telephone number (r), mobile (r), email (r), homepage, and message.
require;First Name ;text:require;Surname;text :Title;radio;Mr,Mr|Mrs,Mrs|Miss,Miss :Company;text :require;Tel;text :Mobile;text :require;Email;text :Homepage;text :Message;textarea;I hope these help, good luck.



Robert Lender said,
Thursday, November 23. 2006 at 01:56 (Reply)
Matthew said,
Monday, November 27. 2006 at 20:24 (Reply)
Robert Lender said,
Monday, November 27. 2006 at 22:03 (Reply)
Carl said,
Tuesday, November 28. 2006 at 06:25 (Reply)
The password field could be used like this
required;password;password:
Matthew said,
Wednesday, November 29. 2006 at 04:10 (Reply)
It is just a way to have users input data that is hidden from the screen.
Carl said,
Monday, November 27. 2006 at 21:51 (Reply)
@Matt, any chance of adding a select field for users to configure? This way small business owners etc could add a slect drop down to their contact form which would allow site visitors to request information on particular product catalogues etc.
Matthew said,
Wednesday, November 29. 2006 at 04:12 (Reply)
Matthew said,
Wednesday, November 29. 2006 at 05:30 (Reply)