Hyperlinks on a form cause errors

G

Gerdes

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?
 
G

Greg Collins [InfoPath MVP]

InfoPath (at least v2003) notoriously adds http:// to the start of hyperlinks if you do not already have a protocol specified.
 
G

Gerdes

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?
 
G

Greg Collins [InfoPath MVP]

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.
 

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