Change '-' blank option

  • oliverb
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #1194 by oliverb
Change '-' blank option was created by oliverb
Hi,

I would like to change the blank '-' option in a drop down box to read 'Select City', 'Select Countries'. I know that you can change this setting in the module parameters but that would be for all the drop down boxes. I need it to read 'select city' and 'select countries'.

Please can someone tell me how this is possible??

Thanks

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #1197 by andrea_4g
Replied by andrea_4g on topic Change '-' blank option
You should:
a) set module parameter 'Select Label Position' to 'Inside': that will change the empty option from ' - ' to the name of the filed (e.g. City)
b) make a small modification to modules/mod_cpsearch/tmpl/default.php, changing line 88 from:
Code:
echo "<option value=\"\" class=\"empty$moduleclass_sfx\">" . htmlspecialchars($field->label) . "</option>\n";
to:
Code:
echo "<option value=\"\" class=\"empty$moduleclass_sfx\"> - Select " . htmlspecialchars($field->label) . " - </option>\n";

Please Log in or Create an account to join the conversation.

  • oliverb
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #1198 by oliverb
Replied by oliverb on topic Change '-' blank option
Thank you for your quick reply!

Is there any way to have the label in both positions?

Please Log in or Create an account to join the conversation.

Time to create page: 0.155 seconds