Author Topic: "Ask a question Form" reset content typed on fields after sending with error  (Read 682 times)

neleausta

  • Beginner
  • *
  • Posts: 10
On VirtueMart 3.2.6 once trying to send a message thorugh "Ask a question" but whenever there's error the modal box refreshes and the content disappear.
It's quite annoying because user is forced to retype the entire message.
Any fix for this??? Force the refresh to remember all the data already typed on inputboxes
Many Thanks

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27598
  • Always on vacation
    • Jenkin Hill Internet
What sort of error?  The usual "error" is that there are not enough characters typed, but works OK here using default VM templates, when not enough characters the warning pops up but the data is not cleared.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.10.10211 on Joomla 3.9.13 PHP 7.0.33

neleausta

  • Beginner
  • *
  • Posts: 10
Try filling out the message textarea first and click the send button, pretending you forgot to fill the name and the email inputboxes.
Of course the form isn't sent because mandatory fields (name and email) are missing, but after the refresh of the page the message textarea is cleared out, and the user is forced to retype the enitre message. I think this is quite annoying, isn't it?
Many thanks

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27598
  • Always on vacation
    • Jenkin Hill Internet
Again using default templates the text is not cleared and the missing fields are highlighted.


image upload api
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.10.10211 on Joomla 3.9.13 PHP 7.0.33