OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
({|pricefield_select_list_132|}[0]->data (0 viewing) 
Go to bottom Favoured: 1
TOPIC: ({|pricefield_select_list_132|}[0]->data
hansel (User)
Gold Boarder
Posts: 206
graphgraph
User Offline Click here to see the profile of this user
({|pricefield_select_list_132|}[0]->data 6 Months ago
Karma: 0  
How can I dispaly a pricefield select list field in a Custome Code field
I tried the following:
echo ({|pricefield_select_list_132|}[0]->data);

But nothing shows up. With other fields it works.
Logged Logged
The administrator has disabled public write access.
VlaDOS (Admin)
Admin
Posts: 103
graphgraph
User Offline Click here to see the profile of this user
Re:({|pricefield_select_list_132|}[0]->data 6 Months ago
Karma: 2  
Hello. The select and radiobutton fields are more complex. To output this field in a custom field, use the following code:
Code:

$select_price_value = {|pricefield_select_list_132|};
$select_price_opt = array();
foreach($select_price_value as $single_opt){
$select_price_opt[] = JHTML::_('select.option', $single_opt->price_id, JText::_($single_opt->price_name), "value", "text");
}

if(!empty($select_price_opt)){
echo JHTML::_('select.genericlist', $select_price_opt, '', '', 'value', 'text', {|pricefield_select_list_20|}[0]->price_id);
}

Logged Logged
The administrator has disabled public write access.
hansel (User)
Gold Boarder
Posts: 206
graphgraph
User Offline Click here to see the profile of this user
Re:({|pricefield_select_list_132|}[0]->data 6 Months ago
Karma: 0  
I have enter the code to the Custom Code field.
Unfortunately only the drop box with the price names shows up and not the values.

However I need to access to the current stored value of the {|pricefield_select_list_132|} to make a calculation with this value. How can I get the current selected value of those pricefield select field?
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 7802
graph
User Offline Click here to see the profile of this user
Re:({|pricefield_select_list_132|}[0]->data 6 Months ago
Karma: 94  
Sorry, Select Price field, in our Joomla CCK, will select at time when some client will select some values from this field. And price which you set to Select list items - will calculate - in this item result.
BUT, you can't show what is user will select, at time when we create form. When we create form - user yet not see this form so he selected nothing

Regards
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top