Bookmark in InfoPath?

V

vb6dev2003

Hi,

Is there any equivalent of a bookmark in InfoPath? I want to be able to
open a form and jump to a section of the doc...

Thanks

vbdev
 
B

Brian Teutsch [MSFT]

You can create the HTML for this by hand, but the functionality isn't
available through InfoPath's UI. You'll have to open up the XSL direction,
and add the anchors with #target and name="target" yourself.

Sorry,
Brian
 
V

vb6dev2003

Hi Brian,

Thank you for your response. I am confused. Le's say I do edit the xsl
file and try to add a target:
Above, let say a textbox, I want to add a target called "my target"
Do I add a line such as <#target name="my target"> using notepad?

Then, how can I jump to these targets using JS code after I recreate the xsn
form from the modified xsl file?

Is there any simple sample of this out there?

Thanks

vbdev.
 
B

Brian Teutsch [MSFT]

Here's the example of what you'd add to the XSL...

My table of contents:
<a href="#section1">Section 1</a>
<a href="#section2">Section 2</a>
.....
<a name="section1"></a>
Section 1
....
<a name="section2"></a>
....

These are HTML anchors that let you navigate within the same page when a
user clicks.

However, you cannot use script to perform the same navigation. InfoPath
doesn't allow for view navigation with script. To get that functionality,
I'd recommend showing/hiding sections, or better yet, using multiple views
and SwitchView, which can be done from script. There are samples of
SwitchView in the help topics.

Brian
 

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