Help Creating a Hyperlink

D

Delnang

There is a designated location on a Sharepoint library where documents
reside. We want the hyperlink to begin with this location
http:\inet2\sites\my_site\

In an InfoPath form, the customer will supply only the file name.
wan_design.vsd
I do not want the customer to have to supply the http:\inet2\sites\my_site\
only the filename. I was then thinking of adding a Go To button which would
run some script to concatenate these two
http:\inet2\sites\my_site\wan_design.vsd then go to the site/document.

Is there a way to do this. I am kind of new, so any help would be
appreciated.
Thanks,
Angie
 
C

Clay Fox

Hi Angie.

I would create a field to store the Hyperlink.

Use a concat function to create the complete url.
concat("http://inet2/sites/my_site/", filename)

Then you can add a hyperlink control which uses this field as the source.

You could hide the hyerlink until they have a a filename value so that they
do not click it when it is incomplete.
--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 
C

Clay Fox

I would create a new field to store your complete hyperlink.

Create a default concat("http://inet2/sites/my_site/", filename)

Then add a hyperlink control which will use the new field as the URL source.

You also might hide the control until a file name has been entered to
prevent users clicking an incomplete link.

--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 
C

Clay Fox

I would create a new field to store your complete hyperlink.

Create a default concat("http://inet2/sites/my_site/", filename)

Then add a hyperlink control which will use the new field as the URL source.

You also might hide the control until a file name has been entered to
prevent users clicking an incomplete link.

--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 
C

Clay Fox

I would create a new field to store your complete hyperlink.

Create a default concat("http://inet2/sites/my_site/", filename)

Then add a hyperlink control which will use the new field as the URL source.

You also might hide the control until a file name has been entered to
prevent users clicking an incomplete link.

--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top