-1

I have a webform which has asking for some cookie settings:

par=Cookies.get('demo'); // => 'value'

Cokies are set after part1 of current Form filled out.

If to fill Form1 and than to fill current Form everything works well however if I open a page directly by weblink with no Form1 was fillled out (cookie 'demo' is undefined) than Form is not submitting.

No errors, no message. Button is processing but data is not sending out. How to fix it?

THE ISSUE HAPPENS ON IE11 Only.

3
  • par=Cookies.get('demo') || ''; The || '' at the end defaults the value to an empty string if undefined.
    – user6702203
    Commented Nov 19, 2018 at 21:06
  • @JM-AGMS Thank you, it works in my case! Appreciate your support! Commented Nov 19, 2018 at 21:51
  • @ JM-AGMS, I suggest you to post your suggestion as an answer. @ J.First Coder, I can see that your issue was solved. So you can try to mark the answer for this thread when JM-AGMS post the answer. Commented Nov 20, 2018 at 5:25

1 Answer 1

0

par=Cookies.get('demo') || ''; The || '' at the end defaults the value to an empty string if undefined. – JM-AGMS 12 hours ago

Not the answer you're looking for? Browse other questions tagged or ask your own question.