- Posts: 424
- Thank you received: 11
question about a custom field not selecting standard value
- BluepointWebdesign
-
Topic Author
- Offline
Less
More
6 years 9 months ago #313899
by BluepointWebdesign
-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.13
-- PHP version -- : 7.x.x
-- Error-message(debug-mod must be tuned on) -- : custom field value not working properly
Hello,
We have made two custom fields with value's but don't want a standard value selected.. But this only can be done when putting a blank field on top of al values.
See screenshots of what i mean.
Hope you can help
Thanks
-- Joomla version -- : 3.9.13
-- PHP version -- : 7.x.x
-- Error-message(debug-mod must be tuned on) -- : custom field value not working properly
Hello,
We have made two custom fields with value's but don't want a standard value selected.. But this only can be done when putting a blank field on top of al values.
See screenshots of what i mean.
Hope you can help
Thanks
Please Log in or Create an account to join the conversation.
6 years 9 months ago #313901
by nicolas
Replied by nicolas on topic question about a custom field not selecting standard value
Hi,
I'm not sure what you're trying to achieve. A dropdown always have to have a value selected. It's not possible to not have a value selected.
Even in HTML, if you don't add the "selected" attribute to any option of a dropdown, the browser will automatically select the first option of the dropdown.
So yes, adding empty value (or a "please select" value or something similar) is often done in such case.
Then, you're talking about "the list on front end". What is that list ? Are you talking about a listing of products ? A filter based on that custom field ? Something else ?
I'm not sure what you're trying to achieve. A dropdown always have to have a value selected. It's not possible to not have a value selected.
Even in HTML, if you don't add the "selected" attribute to any option of a dropdown, the browser will automatically select the first option of the dropdown.
So yes, adding empty value (or a "please select" value or something similar) is often done in such case.
Then, you're talking about "the list on front end". What is that list ? Are you talking about a listing of products ? A filter based on that custom field ? Something else ?
Please Log in or Create an account to join the conversation.
Time to create page: 0.173 seconds