Open New Browser Based on Field Input - JS? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Open New Browser Based on Field Input - JS?

Last post 04-09-2010 07:24 AM by Hilary Stoupa. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-07-2010 05:52 AM

    Open New Browser Based on Field Input - JS?

    This may be way beyond me, but I've been tasked with creating a link in a form that opens an internal HTML site based on information a user enters in a text box.

     i.e.

     User X enters  "234" in the text box labeled Ticket #.

    Below that is an image or button that the user hits which pulls up a internal website...  Ticket #234

    https://our homepage.com/ticket/234

     

     

  • 04-07-2010 03:55 PM In reply to

    Re: Open New Browser Based on Field Input - JS?

    So, this is an InfoPath form that the user enters '234' in? Or the IP form is to opened from the link? I'm confused....

    Hilary Stoupa

  • 04-08-2010 05:08 AM In reply to

    Re: Open New Browser Based on Field Input - JS?

    Sorry... 

    1.  A user starts a browser-enabled Infopath form. 
    2. They are asked to enter a ticket number into a text box field.   Lets say the user enters "234"
    3. Next to that form is a button or hyperlink that opens up a webpage that uses the value 234 in the URL.  
                               i.e.     https://our homepage.com/ticket/234

     to reiterate...  the 234 is concatenating to the hyperlink which is calling a specific "ticket" or order or whatever... . in our system

     hope this clarifies.  thanks for the quick response.

  • 04-08-2010 02:16 PM In reply to

    Re: Open New Browser Based on Field Input - JS?

    You can use a data source for a value for a hyperlink control. Add a field to your data source (or in a secondary data source, like an xml file) and set a calculated default. The formula would look something like:

    concat("https://ourhomepage.com/ticket/", ticketField)

    Select the field that the user enters the ticket number into for the underlined bit that says "ticketField". This will concatenate the URL for the hyperlink control with a value from the form.

    Hilary Stoupa

  • 04-09-2010 05:18 AM In reply to

    Re: Open New Browser Based on Field Input - JS?

    Preftect, thanks!   You are beautiful,  literally and figuratively.  

  • 04-09-2010 07:24 AM In reply to

    Re: Open New Browser Based on Field Input - JS?

    Aw, thank you! <blush>

    Hilary Stoupa

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