Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / February 2007

Tip: Looking for answers? Try searching our database.

Hyperlinks on a form cause errors

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gerdes - 12 Feb 2007 15:01 GMT
In InfoPath 2003 I have modified the view1.xsl file to create a Table of
Contents at the top of a quite lengthy form.  I placed the following anchor
at the top of the form:
<a href="Brief Description">Brief Description</a>

and added the following tag above the Brief Description section:
<a name="Brief Description"></a>

The links work perfectly, the problem is that after I use the links I start
to get the following error when I start trying to make changes to the data.  
For example if I do a Edit/Find a couple of times I get the error:
"InfoPath has encountered an error.  The operation failed"

Has anyone been successful in adding links to their forms?
Greg Collins [InfoPath MVP] - 12 Feb 2007 20:16 GMT
InfoPath (at least v2003) notoriously adds http:// to the start of hyperlinks if you do not already have a protocol specified.

Signature

Greg Collins [Microsoft MVP]
Visit Braintrove ( http://www.braintrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )

Gerdes - 12 Feb 2007 20:31 GMT
I'm sorry, but I'm not sure what you mean by your response.  Are you saying
that because of the way that InfoPath handles hyperlinks that what I am
trying to do is not possible?
Greg Collins [InfoPath MVP] - 13 Feb 2007 14:08 GMT
I'm not sure exactly what you are trying to do with your hyperlinks. But in your example you had:

<a href="Brief Description">Brief Description</a>

InfoPath (at least v2003, not sure about v2007) would then convert this to:

<a href="http://Brief Description">Brief Description</a>

Does that make sense? This is because it is expecting a valid URL, which means that it needs a protocol. The default protocol is http.

I've had situations where I've wanted to use relative, rather than absolute links, and I've had to manually edit the .xml file afterward to remove the http:// that InfoPath added.

Signature

Greg Collins [Microsoft MVP]
Visit Braintrove ( http://www.braintrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.