Hey everyone,
I have set up the following:
A light box with user input field and a button.
I want to achieve the following:
- on button click a check is activated whether the input field have a value and whether its valid (figured out how to do that with on change function and a validity check)
- if the value is valid I would like to open a link that contains information of the inputfields
- I would like that link to open in a new tab
- At the same time I would like the lightbox to close
The issue is that with location.to you can’t open a new link and I can’t figure out how to close the lightbox and dynamically generate the link without using location.to
Any help is much appreciated!
Thanks!
Joern