Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 330259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:39:52+00:00 2026-05-12T09:39:52+00:00

I am trying to figure out how to make a hyperlink in a Livecycle

  • 0

I am trying to figure out how to make a hyperlink in a Livecycle Form which points to a URL which will change on different days that the form is rendered. For example on one day I might want the hyperlink to point to:

mywebsite/mypage?option=XXX

and on another day I want it to point to:

mywebsite/mypage?option=YYY

The XXX and YYY can be passed into the form’s data pretty easily as XML, but I just don’t know how to make it so that the hyperlink is changed to correspond to this.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:39:53+00:00Added an answer on May 12, 2026 at 9:39 am

    This can be accomplished with JavaScript in LiveCycle Designer. The following script, placed on the Form’s docReady event will let you dynamically change the URL of a text object.

     form1::docReady - (JavaScript, client)
    // If this code is running on the server, you don't want it to run any code 
    // that might force a relayout, or you could get stuck in an infinite loop
    if (xfa.host.name != "XFAPresentationAgent") {
    
        // You would load the URL that you want into this variable, based on 
        // whatever XML data is being passed into your form
        var sURL = "www.stackoverflow.com"; // mywebsite/mypage?option=xxx
    
        // URLs are encoded in XHTML.  In order to change the URL, you need 
        // to create the right XHTML string and push it into the Text object's 
        // <value> node. This is a super simple XHTML shell for this purpose.  
        // You could add all sorts of markup to make your hyperlink look pretty
        var sRichText = "<body><p><a href=\"" + sURL + "\">Foo</a></p></body>";
    
        // Assuming you have a text object called "Text1" on the form, this 
        // call will push the rich text into the node.  Note that this call        
        // will force a re-layout of the form
        this.resolveNode("Text1").value.exData.loadXML(sRichText, false, true);
    }
    

    There are a couple of caveats: URLs in Acrobat are only supported in Acrobat 9.0 and later. So if someone using an older version of Acrobat opens your form, the URLs won’t work.

    Also, as you can see from the “if (xfa.host.name !=…)” line, this code won’t run properly if the form is being generated on the server, because forcing a re-layout of a form during docReady can cause problems on certain older versions of the LiveCycle server. If you do need to run this script on the server, you should probably pick a different event then form::docReady.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to figure out how to make it so that when I'm moving
I'm trying to figure out how make a basic GET request using Network.HTTP.simpleHTTP that
I am trying to figure out how to make public/private keys that are AES
Heres a screenshot to make it clear. I'm trying to figure out a robust
In trying to figure out this problem (which is still unsolved and I still
I'm trying to figure out how to make static methods in a class in
I'm trying to figure out how to make this hack for attr_accessible to support
I'm trying to figure out how to make jQuery slide #content2 down and replace
Im trying to figure out how can I make singelSelection on ASPxGridView. The onClick
I am trying to figure out how to make a 3.5 WCF service thats

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.