Can the address_state popup be set to have No Default

  • Posts: 180
  • Thank you received: 13
7 years 10 months ago #258758

-- 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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 10 months ago #258759

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 180
  • Thank you received: 13
7 years 10 months ago #259259

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 10 months ago #259267

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.

  • Posts: 180
  • Thank you received: 13
7 years 10 months ago #259422

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.058 seconds
Powered by Kunena Forum