cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Hyperlink not linking?

TG_10622756
8-Gravel

Hyperlink not linking?

Working in Vuforia Studio in 2D.  Using the Hyperlink widget.  I want to click on the hyperlink and I want the link to take me to another experience.  I am using the link info in the Share pulldown.  I grab that infor and go to Events and in the JS I insert that link info for the experience - vuforiaview://ptc.com/command/view-experience?...In the Preview I can run it and I will be able to get the Experience that I want to load with the hyperlink - but it will be the Vuforia Studio Experience?  I assume it is linking and should work in the 'real world' - not the Studio version?

 

I publish the experience and place it in my downloads.  I open the 2D experience and when I click on the hyperlink...my Apple says it can not find the link using Safari???  Or something to that effect???  

 

I there something I need to do with the Apple?  With my link?  What do I need to do differently to make this work - and open the link?

 

Any insights or direct me to a HELP post would be appreciated...thanks

ACCEPTED SOLUTION

Accepted Solutions

Ah, I think I see the problem. The target URL for the hyperlink doesn't go in the Click Event JS box, it goes in the URL field above:

ClayHelberg_0-1726518431038.png

 

I just did a quick test and it worked fine for me.

 

View solution in original post

6 REPLIES 6

Just to clarify - my Apple says - Safari can't open the page because it couldn't connect to the server?

 

Thanks...

It may not work with a downloaded experience, because I believe View assumes that if you downloaded it, you won't have access to the internet. That's why downloaded experiences always start with that "No live data will be available in this experience" message. Does it work if you run it "live", i.e. not downloaded but normally from the server?

Thanks for the response.  So I need to remove all of my Experiences that have downloaded to my device?  And Experiences would be accessed thru the file directory from the server without needing to be downloaded to a device?  I will have to try this...

 

...and then this should work as a hyperlinks.  Maybe I missed a step - see below:

 

Now with pics...

 

So, I go to the Share pull down to select the link:

 

Screenshot 2024-09-16 141719.png

 

Grab the Experience URL:

 

 

Screenshot 2024-09-16 141751.png

 

And put the link in the JS for the Hyperlink-1:

 

Screenshot 2024-09-16 142803.png

Ah, I think I see the problem. The target URL for the hyperlink doesn't go in the Click Event JS box, it goes in the URL field above:

ClayHelberg_0-1726518431038.png

 

I just did a quick test and it worked fine for me.

 

Thanks for your solution!  It worked for me too...

Glad to hear it!

Announcements

Top Tags