• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Code suggestion : only one radio button from many

Code suggestion : only one radio button from many 16 years 11 months ago #375

  • globule
  • globule's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Here how radio buttons can be manage using default values :
case 'radio':
				$options = '';
				$row->default_value = explode(',',$row->default_value);
				$fieldvalues='';
				foreach ($row->default_value as $optionset){
					$fieldvalues .= '<input type=\"radio\" name=\"'.$row->name.'\" value=\"'.$optionset.'\" id=\"'.$row->name.$optionset.'\" '.$row->params.' />'.$optionset;
				}
				$html = str_replace('{fieldtitle}',$row->title,$row->fieldstyle);
				$html = str_replace('{validationsign}',($row->validation_rule) ? ' *':'',$html);
				$html = str_replace('{field}',$fieldvalues,$html);
				$html = str_replace('{fielddesc}',$row->description,$html);
			break;
The administrator has disabled public write access.

Re:Code suggestion : only one radio button from many 16 years 11 months ago #423

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Thanks, i'll keep that in mind.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!