Create the hyperlink in a text field

I have a form that collects data from a customer. The number of customers is their phone number. This issue is already known and stored in a "cPhone" text field in the form. After all data are collected on the form, I then need to browse the site of customers the last part of the url of the site corresponding to their phone number that is already stored in the field "cPhone. What I want to do is to create a hyperlink to the Web site, that ends in the number of customer phone and when you click it it will take you to this Web site. For example, the url of the Web site might be www.mywebsite.com/main/active/ and my clients, 'cPhone' telephone number is 800-555-5555, when some kind of action is taken, the two are combined, and then it takes me to this Web page.

Is they are combined and an action is created to open a web link, or a hyperlink can be created on the page that can be clicked, or anything else in the meantime. Is this possible?

Probably the simplest is to use a button. The action could be a JavaScript like:

Script mouse upward to a button

app.launchURL ("http://www.example.com/main/active/"+ getField("cPhone").valueAsString, true);

In practice, you'll want to check the value of the number field phone to see that it is not empty and is over, but this should help you get started.

You can use the buttonSetCaption method to set the label of the button to the URL, perhaps in the phone number field Validate event.

Tags: Acrobat

Similar Questions

  • Hyperlinks in dynamic text fields

    What is the method for creating hyperlinks in dynamic text fields for navigation to other images in the film? http://www.avistarmedia.com/McClure.html

    SM6601 wrote:
    > What is the method for creating hyperlinks in dynamic text fields for navigation to other images in the film? http://www.avistarmedia.com/McClure.html

    using ASfunction.
    Check the help files for the above name, you will get all the details
    detail.

    --
    Best regards

    Urami

    --

    !!!!!!! Merry Christmas!
    &
    Happy new year


    If you want to send me a message - DO NOT LAUGH at MY ADDRESS

  • Is it possible for someone to insert a logo when you fill out a form to fill out? I'm looking for all the options under the button 'add a text field.

    I have created a form to fill out that is a contract, but I need a way for the person who is to fill the form to insert their logo.  Is it possible for someone to insert a logo when you fill out the form to fill out? I'm looking for all the options under the button 'add a text field.

    It is not possible within a text field, either. If they have Acrobat, they can use the built-in under Tools - editing content Add Image tool.

    If they drive XI or higher, they can use a button form field you will need to set up for them, but the image must be in PDF format.

  • HELP - lost the button "calculate" in the "text field properties"! I try to summarize the total for separate text fields in a summary box.

    Help, please!  I try to summarize the total for separate text fields in a summary box, but have lost the tab 'calculate' in the 'text field properties area.  Any help would be greatly appreciated!

    When in forms editing mode (Tools > prepare form), select: more > return to the Acrobat form

    In the future, check the box 'this document requires signatures' when you choose at the beginning: Tools > form prepare

    unless you plan to use the form with eSign Document Adobe cloud service.

  • Problems with the filling of a text field with 2 other fields data


    I have 3 domains Tools_1a_pri, Tools_1a_pri_other, Tools_1a_pri_txt.

    Tools_1a_pri is a drop-down list box with a predefined list. One of the options is the 'other '.  If 'Other' is selected, the text Tools_1a_pri_other field becomes visible for users to enter the name of the other tool.

    The Tools_1a_pri_txt is a text field with a calculation that shows a text indicating that no tool has been selected or the Tools_1a_pri & or Tools_1a_pri_other.

    When I select one of the predefined tools, everything works.  When I choose the other, it seems that nothing has changed.  Must I click another field before.  It's confusing for the user.

    Tools_1a_pri validate code
    this.getField("Tools_1a_pri_Other").display = event.value is "Other"? Display.visible: display.hidden;

    Computer Tools_1a_pri_txt code
    If nothing is selected, follow these steps
    If (getField("Tools_1a_pri").value.length < 2) {}
    event.target.textColor = color.red
    Event.Value = "no identified main tool";
    } else if (getField("Tools_1a_pri").value! = 'Other') {}
    If not do that if the other is selected
    event.target.textColor = color.black
    Event.Value = getField("Tools_1a_pri").value;
    } else if (getField("Tools_1a_pri").value = 'Other') {}
    If not do so if the other is not selected
    event.target.textColor = color.black
    GetField("Tools_1a_pri").value = Event.Value + "-" + getField("Tools_1a_pri_Other").value;
    }

    You have made the classic mistake of using the assignment operator in a statement instead of the comparison operator. Change this line:
    } else if (getField("Tools_1a_pri").value = 'Other') {}

    To do this:

    } Else if (getField("Tools_1a_pri").value == 'Other') {}

  • Check the boxes based on the value in a text field

    Hello.

    I'm building a pdf form in Acrobat Professional X. I want to add JavaScript to two checkboxs to achieve the following objectives:

    If the value of a text field (TLigne) is equal to 61, 64, 66 or 67, the first box (PlanACheck) has the value of the object of an audit.  If the value of a text field (TLigne) is equal to 60, 62 or 63, the second box (PlanBCheck) has the value of the object of an audit.

    I have no other than copy and paste Javascript experience, so I'm not sure I use the right language to research. If anyone can provide guidance, I would be very happy.

    Thank you very much!

    Usually this kind of thing will run the custom calculation of the target field script, but the boxes is not a calculation script, so we'll use the text for field Validation script do, with this code:

    this.getField("PlanACheck").checkThisBox (0, (event.value == "61" | event.value == "64" | event.value == '66' | event.value == "67"));

    this.getField("PlanBCheck").checkThisBox (0, (event.value == "60" | event.value == "62" | event.value == "63"));

  • Referring to the value of a text field, not the legend

    How to refer to the value in a text field to make the data entered by the user "BOLD" / no fat without the caption of a field text in bold or not bold?

    Hello

    Two lines should do. The first turn the caption and the "BOLD" value, then the second changes the legend of back to normal:

    TextField1.font.weight = "bold";
    TextField1.caption.font.weight = "normal";
    

    Hope that helps,

    Niall

    Ensure the dynamics

  • Try to retrieve the contents of a text field and use it in a conditional statement

    Hello world

    I have a form with a text field and a button. The text field is called "orderNo" and the button is called "genOrder".

    Initially, the text field is empty, and clicking on the button fills the text with an appropriate order number field.

    I have need to check the text field for the data (content) before you write the order number, in this way, if an order number is already present in the text field, it will be over written.

    My intention is to use an if / else structure to perform the tests, but I do not know how to retrieve the content of the text field (if the content is present!).

    If anyone can suggest how I can go about extracting the contents of a text field and then use it in an if / else statement it will be greatly appreciated.

    Kind regards

    DAVO

    currentOrderNo = this.getField("orderNo").value;

    If ("currentOrderNo == null | currentOrderNo ==" ") {}

    the field is empty, fill it with a new value

    } else {}

    the field is not empty, something else

    }

  • change the visulas of a text field

    Hello!

    How do heck you change the attributes of a text field that is in a form. IM particularly interested in the color and size of the box itself. I guess that this is done in css, if so that the CSS properties do change?

    Thank you very much and MERRY CHRISTMAS!

    Does that help?

    http://articles.SitePoint.com/print/style-Web-Forms-CSS

    Martin

  • Try to highlight the rectangle of a text field

    I'm trying to point out the rectangle of a text field with an Annotation of the line, but I'm a bit confused.

    The first doubt is on the 'Square' vs 'Rectangle' annotations What is the difference between them? Adobe has those changed recently?

    I tried several variations of the following code snippet:

    var x 1 = textField.rect [0];
    var y1 =
    textField.rect [1];
    var x 2 =
    textField.rect [2];
    var y2 =
    textField.rect [3];

    var this.addAnnot({) = underline
    page: 0.
    type: 'Line ',.
    Rect: [x 1, y1, x 2, y1],.
    strokeColor: color.red,.
    strokeWidth: 160
    });

    What I get is a line of identity (e.g., 45 degrees) in the lower left corner.

    -Ramon

    The square rect sets top-left-x, top-left-y, down, left - bottom-left-y and x.

    For a line, it is left-x, left-y, x-right, right-y.

    So if you want the line to be under place, use the background values of the place to place the line.

  • The legend of a text field border

    Does anyone know how to get the edge of the legend of a text field and the value section is visible to a user of the form?  It's a bit confusing when someone enters a field, and there is no line between the legend, they can't change it, and the value, they need editing.

    Choose different skins for the field will make very clear. If you choose to have no appearance there is no deliniation between the two. You can set up to change the background color of the zone to enter and deliver it to the output. This technique will highlight the field that has the focus, and there is no doubt as to where the field stops and starts.

  • Query of the police in dynamic text fields (livecycle ES3)

    Hi all, is it possible to configure a dynamic form (livecycle ES3) to allow the user to enter the normal two (by default) AND a bold font in a text field? In addition, if different color font were to insist on a point - is it possible? Enjoy cany help in this matter. Thank you

    Yes to bold, but I don't think (unless someone can correct me) on the highlight. For the bold, you first have to change the Format of field in the window object library. Once that is then activated in the two player (if you extend the right permissions) and in Acrobat, you can select the text that you want, right-click on it, go to 'Text Style' and then change the font of the selected text only for "BOLD". I put some screenshots below of what it will look like. Derivative is a different beast in Adobe. Specific text highlighting is not an option that allows Adobe and Livecycle, I don't know if there is a way to let a user highlight specific text in a field. If you try to use the method to highlight in Acrobat or Reader, it will prompt you to created a printed version. You can select the entire field itself with a few JS Livecycle, but the text are not specific.

  • How can I change the contents of a text field in a PDF form with a defined variable?

    Hi all!

    First time poster and getting quite frustrated trying to understand this issue. Here's the scenario: I use Acrobat Pro 10 to create what is essentially a form of giant order. I have designed the document in InDesign, defined the various buttons and other whatnot and then it exported to Acrobat to continue the construction of the form.

    I have a radio button group called 'conference_opportunities' that contains different options at different prices, so they are all the same, but have different values (so that they belong to the same group and only one can be selected at a time).

    What I've done is created a 'MouseDown' event on the button that sets a variable called 'ConferenceOpportunity', which is equivalent to the title of the option they pick. Then, I want to take this variable and display in a text box called "Conference_Option". I use a variable because my radio buttons values are actual prices of the option they pick, so I can't set the value as the title of the option.

    If its an array of boxes and option at the bottom of the page, there is the Option that they selected, the quantity (which can change) and value (in dollars)

    I also then want to display this variable at the end of the document as a kind of summary of what they have chosen to buy as well, but I guess it's the same code.

    I'm not an expert at all Javascript, so code snippets would help greatly. I looked on the Document from Adobe on the SDK and API and have not been able to find a solution. I also turned to the Almighty google and still no luck.

    Any help would be greatly appreciated!

    Thank you all

    Right now, you have to do is use this variable to the value property of your text field... Then add this at the end of your code:

    this.getField("Conference_Option").value = ConferenceOpportunity;

    Also, I would use not MouseDown, MouseUp.

  • Check if the number in a text field will evaluate to a date format

    I have a field FieldA, which contains 6 numbers, (even if the field is a text field). I need to know if that evaluate the numbers from the field to a real date in MMDDYY format. For example, if FieldA contains 060110, which would evaluate then to a real date from 01/06/10. However, if FieldA contains 130110, so this isn't a valid date and the test will indicate accordingly. I was thinking about using a case statement, but unsure of how to test if the numbers are evaluated to a valid date...

    Sort of:

    BOX WHEN FieldA = 'Date valid' THEN FieldA TO_DATE(FieldA, 'mm-dd-yyyy')

    Any help is appreciated...

    Thank you...
    /* Formatted on 11/14/2011 4:03:53 PM (QP5 v5.149.1003.31008) */
    CREATE OR REPLACE FUNCTION validate_date (in_dt VARCHAR2)
       RETURN VARCHAR2
    IS
    BEGIN
       FOR c IN (SELECT TO_DATE (in_dt, 'mmddrr') x FROM DUAL)
       LOOP
          RETURN 'Valid Date';
       END LOOP;
    EXCEPTION
       WHEN OTHERS
       THEN
          RETURN SQLERRM;
    END;
    
    --------------------------------------------------------------------
    
    WITH t AS (SELECT '060110' fieldA FROM DUAL
               UNION ALL
               SELECT '130110' FROM DUAL)
    SELECT CASE validate_date (fieldA)
              WHEN 'Valid Date' THEN TO_DATE (fieldA, 'mmddrr')
           END
              col1,
           validate_date (fieldA)
      FROM t;
    
    COL1     VALIDATE_DATE(FIELDA)
    6/1/2010     Valid Date
         ORA-01843: not a valid month
    

    Published by: pollywog on November 14, 2011 16:03

  • Position of the label in a text field

    Hello

    By default, using a text field, the label appears on the side of the laft entry box.

    Is it possible that the positioning of the label and the input can be reconfigured? I'm wanting to label in order to appear above the entrance to each field.

    FOR EXAMPLE

    * Label *.

    * Input box *.

    Could leave the empty label and create a separate static text for each field object, but prefer to use a simpler if possible approach!

    Thank you.

    It only you is enough to set the position you want for the legend of field in the page layout palette.

Maybe you are looking for

  • Firefox does not download Chrome

    As I try to download Google Chrome, I get the following message: The secure connection failed An error occurred when connecting to www.google.com. Even SSL rejected a unacceptable content handshake message. (Error code: ssl_error_illegal_parameter_al

  • Locked BIOS

    Hi, I'm having the same problem... My stop code is [52198555]

  • Determine dynamically computer CVI of 32 bit vs 64

    Is there some API, CVI (LabWindows), that I can use to determine the architecture, 32 vs 64-bit machine on my application is running? The reason is that I have a call to open a file under 'Program Files' but if it's a 64-bit computer, I need to make

  • index Array entry problem

    Hello Has anyone seen this problem before.  I have an array of index I've used before in a previous Sub - VI, but for some reason, I get an error of wiring, and I don't know why.  I have attached the prior use and current use and I do not see why I g

  • Sometimes, like now, my antivirus software fails to start when I turn on my computer. What should I do?

    Windows security alerts. The small red sign in the lower right corner of my monitor tells me that my computer is not protected against viruses. The only way to make it work again is to restart my computer, but this time even that did not work. Window