Feedback form with <select> element

Author Message

Radic Radovan

Tuesday 08 November 2005 8:16:05 am

Hello,

I need to have contact form where user could choose what product he wants to get more information on the address. I extended feedback form and added "Selection" datatype with 3 options.
Now, what do i need to do in order to show this select box to the user?
I overrided feedback_form.tpl template and added {attribute_view_gui attribute=$node.object.data_map.product} but it only shows text representation of the first element in the options. How could i force it to show <select> and iterate through options?
Also, how could i collect product information that user have selected?

Thanks,
Radovan

Gurudutt Verma

Wednesday 09 November 2005 1:20:32 am

Hi Radicr Radovan!

eZSelection datatype can not set for information collection.

Please try to use eZOption or eZMultiOption datatype to meet your requirements.

Ɓukasz Serwatka

Wednesday 09 November 2005 1:24:50 am

Look also on

http://ez.no/community/forum/developer/multiple_selection_information_collector

and

http://ez.no/community/forum/general/option_datatype_as_information_collector

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Radic Radovan

Wednesday 09 November 2005 1:47:27 am

Thank you guys for the help one more time.

(Hint for the forum developers:)
In my message subject there is select tag, and when i do reply on this page i can see an empty select box. Maybe they should strip tags, or add slashes on html tags.

Radovan

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:25:47
Script start
Timing: Jan 18 2025 16:25:47
Module start 'layout'
Timing: Jan 18 2025 16:25:47
Module start 'content'
Timing: Jan 18 2025 16:25:48
Module end 'content'
Timing: Jan 18 2025 16:25:48
Script end

Main resources:

Total runtime0.7412 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 589.0547152.6250
Module start 'layout' 0.00450.0026 741.679739.4453
Module start 'content' 0.00710.7326 781.1250587.2578
Module end 'content' 0.73970.0015 1,368.382812.1563
Script end 0.7412  1,380.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4169160.0002
Check MTime0.00140.1832160.0001
Mysql Total
Database connection0.00070.098510.0007
Mysqli_queries0.688592.8853620.0111
Looping result0.00060.0872600.0000
Template Total0.705395.120.3526
Template load0.00200.275220.0010
Template processing0.703294.871820.3516
Template load and register function0.00020.021210.0002
states
state_id_array0.00220.301610.0022
state_identifier_array0.00130.169620.0006
Override
Cache load0.00170.2279260.0001
Sytem overhead
Fetch class attribute can translate value0.00070.101130.0002
Fetch class attribute name0.00130.174460.0002
XML
Image XML parsing0.00120.163730.0004
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00090.1248240.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs