Total : 0.00 €

Before contacting us, please make sure to check our F.A.Q

Please, login or register to our website in order to be able to post a presale question in the forum.

× WooPrice Calculator PRO

Input date on Android

More
3 months 3 days ago #1670 by Paul
Paul replied the topic: Input date on Android
Hello,

Sorry for the late reply.
Anyway it's great that you got to solved it by yourself!
well done!

Best Regards
Paul
AT598

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

  • guilhem villarroya-palau
  • guilhem villarroya-palau's Avatar Topic Author
  • Offline
More
3 months 3 days ago #1668 by guilhem villarroya-palau
guilhem villarroya-palau replied the topic: Input date on Android
It's done :

-> simple line of jQuery to add :

$('input[name=aws_price_calc_XX]').replaceWith('<input type="date" class="form-control" name="aws_price_calc_XX" value="'+this.value+'">' );

The results of the calculation is good.

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

  • guilhem villarroya-palau
  • guilhem villarroya-palau's Avatar Topic Author
  • Offline
More
3 months 4 days ago #1661 by guilhem villarroya-palau
guilhem villarroya-palau created the topic: Input date on Android
Hello,

i use WPC Pro. I test the website on Android and iOs. It is fully responsive but... the input date field does show a HTML date picker AND the Androit text keyboard (same on iOs).

I did some research, it is because the input type field is in in fact a "text" instead of a "date"

So i guess the solution is to check with jQuery if the device is mobile or desktop and to change the input type into "date" for mobile. I will try today, but i liked to know if some of you have already a solution (and which one) ? Does the switch to type=date creates a conflict with WPC ?

Greetings.

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

Moderators: david
Time to create page: 0.149 seconds

Cart

Total : 0.00 €