Opening a new page
# 🌎general
b
I have multiple links They are all connected with different flows Is there any possibility they all can get working I did some research for that and found out that I have to specify the event.type for each but I couldnt see how I have added that in fiddle in commented from kindly check that too
f
Hey there, You don't need that. You can just change the openNewPage to something unique for each link and then use the
switch
statement. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/switch
I think you forgot to save the JSFiddle, I can't see that anything has changed.
b
My bad i accidently attatched previous fiddle link https://jsfiddle.net/mgc9d6uv/8/ i know switch statement but i couldn't see how i can make reference with "OpenNewPage" or some unique id
@fresh-fireman-491
You can access it from there
b
You have proved to be very helpful Sincere thanks @fresh-fireman-491
f
You are very welcome
4 Views