VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: neleausta on November 27, 2017, 17:10:33 PM

Title: "Ask a question Form" reset content typed on fields after sending with error
Post by: neleausta on November 27, 2017, 17:10:33 PM
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
Title: Re: "Ask a question Form" reset content typed on fields after sending with error
Post by: jenkinhill on November 27, 2017, 18:06:02 PM
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.
Title: Re: "Ask a question Form" reset content typed on fields after sending with error
Post by: neleausta on November 30, 2017, 12:58:10 PM
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
Title: Re: "Ask a question Form" reset content typed on fields after sending with error
Post by: jenkinhill on November 30, 2017, 13:50:15 PM
Again using default templates the text is not cleared and the missing fields are highlighted.

(https://image.ibb.co/k9WOeb/askquest.png) (https://imgbb.com/)
image upload api (https://imgbb.com/)