how to add Anchor Tags in Infopath 2007 - InfoPath Dev
in

InfoPath Dev

how to add Anchor Tags in Infopath 2007

Last post 03-16-2010 03:01 PM by gtg864m. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 02-07-2008 12:49 AM

    • ya101
    • Not Ranked
    • Joined on 01-13-2008
    • Posts 4

    how to add Anchor Tags in Infopath 2007

    Thanks,Ron

  • 02-07-2008 04:59 PM In reply to

    Re: how to add Anchor Tags in Infopath 2007

    In the Controls task pane, insert a Hyperlink control.

  • 02-10-2008 07:42 AM In reply to

    • ya101
    • Not Ranked
    • Joined on 01-13-2008
    • Posts 4

    Re: how to add Anchor Tags in Infopath 2007

    Thanks for the answer

    still have problem to use hyperlink

    from radio option i choose Data source and choose the section to jump for.

    when i run it empty ie browser was open.

    do you know other way to jump to some section inthe same view

     

    Thanks

    Ron

  • 02-13-2008 02:52 PM In reply to

    Re: how to add Anchor Tags in Infopath 2007

    I apologize for misunderstanding your question. I was talking about hyperlinks, you were talking about anchors (which are a form of hyperlink). InfoPath does not support anchors. There is no good way to jump to a specific portion of the view from within InfoPath. There are methods for selecting fields or text within fields... but these are clumbsy at best, though they might offer you what you need. You will need to have code for the selection features.

  • 02-13-2009 05:52 AM In reply to

    • lottoj
    • Not Ranked
    • Joined on 03-28-2007
    • Posts 2

    Re: how to add Anchor Tags in Infopath 2007

    There was a way to do it in InfoPath 2003 but it required that you manually edit the XSL file for the view to add the anchor tag with a name and modify the link to it to point to the name of the anchor you created.  

    Theoretically, it SHOULD work in InfoPath 2007.  I recently upgraded and it's not working at the moment.  I'm assuming (or perhaps hoping) that it's something minor I'm missing as opposed to a change in 2007.  Here's a quick example of what you do to modify the XSL.  (NOTE:  You can break your view if you're not familiar with XSL/HTML so if you want to try this, make a copy of the view before you attempt any modifications.)

    Locate where you want to jump to and add this tag within the HTML (it must be within an <xsl:template> tag) :

    <a name="[ANCHORNAME]"></a>

     Modify the hyperlink that you already created, to

    <a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=38404&ReturnUrl=%2fforums%2fp%2f7183%2f38404.aspx%2338404#[ANCHORNAME]" xd:disableEditing="yes">[ANCHORNAME]</a>  (THE FORUM KEEPS INSERTING SOME EXTRA STUFF INTO THE HREF BUT THE VALUE AFTER THE HREF SHOULD BE A # SIGN PLUS THE NAME OF THE ANCHOR.  SO, EXCLUDING THE EXTRA SPACES  H R E F ="#[ANCHORNAME]"  HOPEFULLY, THAT MAKES SENSE.)

     I'll post an update if I can figure out what the problem is in 2007 (Or if someone knows for a fact that 2007 changed in such a way to break this, I would appreciate the info).

  • 03-16-2010 03:01 PM In reply to

    Re: how to add Anchor Tags in Infopath 2007

    lottoj,

     Did you find a solution for 2007?

     

Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.