Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Form Sends Dates Even When Not Selected Rate Topic   - - - - -

 
  • pepo1
  • Advanced Member
  • Members
  • Join Date: 23-Jun 17
  • 85 posts

Posted 26 October 2017 - 08:22 PM #1

I have created a contact form with 10 date fields for users to choose promotion dates.

If only one date is selected, the remaining dates are passed as the current date. Not really a major problem because I can possibly assume that the string of current dates are dates that weren't selected. But, it would still be nice to have blank dates.

 

See attachment.

Attached Thumbnails

  • dates.PNG


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19585 posts

Posted 27 October 2017 - 06:13 AM #2

You can add the pages.pre.php controller in the My changes module, compare data in request with current data and clear necessary values


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.