Skip to main content

Can the address_state popup be set to have No Default

More
9 years 9 months ago #258758 by esotechie
-- HikaShop version -- : Business 2.6.4 [1610260900]
-- Joomla version -- : 3.6.4 Stable
-- PHP version -- : 7.0.3

Hi

It seems very odd to have a default for the state in the address. How can this simply be removed so that the pop-up shows with nothing selected for new addresses.

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

More
9 years 9 months ago #258759 by Jerome
Hi,

Just edit your custom field in order to change his settings ; and use the "please select" option.
www.hikashop.com/support/documentation/1...shop-field-form.html

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

More
9 years 8 months ago #259259 by esotechie
Thanks for the reply Jerome

But that does not do what I want it to do.

I do not want a default. I want there to be nothing selected. The form will not allow that.

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

More
9 years 8 months ago #259267 by nicolas
Hi,

If what Jerome told you is not what you want, then I don't see what you want.
The "please select" option is the closest thing as it adds an entry that isn't a state and with the required option turned on, it forces the user to select something else. And on top of that, you can even change that text with a translation override if you want it to be empty.
It's not possible to not have one of the values of the dropdown selected in a dropdown in HTML.
Otherwise, what you can do is trick the browser with such JS code: stackoverflow.com/a/8605567/6390007

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

More
9 years 8 months ago #259422 by esotechie
Hi

Apologies to both of you. I assumed the preview showed what it would look like with that option and did not test it out with the front-end.

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

Time to create page: 0.181 seconds
Powered by Kunena Forum