How to insert dynamic URL in confiform? IS IFTTT any helpful?
Asked by Aman Angural:

I am looking to create dynamic URL in a confiform. Idea is to take latitude and longitude values from user input and creating a link in a mapping tool using URL which includes location coordinates.

Could you please provide the best possible way to implement it.

Any tutorial or video would be helpful.


Answers:
author: Alex Medved _ConfiForms_
body: Hi

Have you looked into "autolink" field type?

You could give a "pattern" to create your links automatically (based on the values you have in other fields and things like that)

Alex

comments: author: Aman Angural
body: HI Alex thanks for your reply I have a look a this one.


author: Aman Angural
body: HI Alex I looked into this field and tried a lot of options but it is not working for me. Could you please send an example. I want to create link dynamically from fields of form and open browser in new tab. I used this format for pattern in autolink field.

[https://www.google.com/\[entry.mytext\]\|](https://www.google.com/[entry.mytext]|)\[entry.mytext\]


author: Alex Medved _ConfiForms_
body: Honestly I dont quite understand where do you have many options to try... but here is what I meant and how the autolink field work in ConfiForms

<http://recordit.co/8CaxXdV8Fk>

Alex


author: Aman Angural
body: HI Alex, Thanks! the example you send works when I have registered the confiform.

I am after a button or click action that picks data from user defined field and open the link in new tab before data is registered. Is that a possibility.


author: Alex Medved _ConfiForms_
body: Sorry, not sure how ConfiForms could help (and is relevant) in this use case.

How exactly you see this happening
> I am after a button or click action that picks data from user defined field and open the link in new tab before data is registered

how the user does the following?


author: Aman Angural
body: I have a tool that takes Longitude and Latitude value from form field and I want to pickup coordinates from two fields and show on separate tab the location on the tool/application to verify the location before submitting the complete form.


author: Alex Medved _ConfiForms_
body: Sorry, probably it makes sense to you... but I am still having difficulties to understand the process... you are looking to pickup coordinates from 2 fields - do you have a the form open?

"Where" do you have your tool "that takes Longitude and Latitude value from form field" and how is it used? Or this is a separate script you want to integrate somehow into the (ConfiForms) form?

I am a more "visual" person, and really look into example/screenshots/etc

Are you asking about something like this - <http://recordit.co/ugYald23xt>

This short demo shows how to get a value of a form's field through the custom button click (the idea is that you can extend this to create/open a link you want)


author: Aman Angural
body: This is the URL that I want to run and open xxx map location on application using input from user. Input is from two fields Latitude and Longitude.

[https://netmaps.in.telstra.com.au/?action=goto\&Lat=\[entry.Latitude\]\&Lon=\[entry.Longitude\]\|](https://netmaps.in.telstra.com.au/?action=goto&Lat=[entry.Latitude]&Lon=[entry.Longitude]|)\[entry.Latitude\]\[entry.Longitude\]

Currently, Autolink is creating link once we have clicked the submit/register button. Can we do that while filling the form. I mean as soon as Value of Lat and long is added by user we have a link on form to click to open application/web page to that location by tool. Not after completing full form. I have about other 10 fields to be filed in form as well.


author: Alex Medved _ConfiForms_
body: The previous screencast could be extended to do what you need, but here is an alternative <http://recordit.co/o6t96eWJNW>


author: Aman Angural
body: HI Alex, Thanks a lot it worked for me. really appreciate your support


author: Alex Medved _ConfiForms_
body: And as usual with ConfiForms - this is just couple ways how to approach it.

Could use HTML fields as alternative or link fields... A lot of other variations and possibilities


author: Aman Angural
body: It is quite flexible. Thats what I love about confiforms. Only thing that I would like to improve is to create a pop up window to show data in field. you have to scroll to see what is filled in field if the string is long.


author: Alex Medved _ConfiForms_
body: Help me to understand this better - what fo you need to scroll?   
And what could be done better?


Tags: confiforms

confluence-server

server