Select to view content in your preferred language

Open a URL based on value in Form

224
4
Jump to solution
11-21-2024 03:11 PM
MeleKoneya1
Regular Contributor

Hello,

We are migrating our hydrant review app to field maps.

Part of the current Web App Builder is the ability to launch our own work order URL when a repair is needed.

The URL passes in the asset_id as an argument and the web page opens allowing fire crews to update the issues they may have found in the field.

Can I do with this a field maps form?     I have a  review status field in the form where one value is 'Needs Repair'     When that is selected, I would like an action to open the web page.

Thank you,

Mele

0 Kudos
1 Solution

Accepted Solutions
ChristopherCounsell
MVP Regular Contributor

Yes you can do this with an Info note and expression. Here is a guide that will run you through the steps:

https://www.esri.com/arcgis-blog/products/field-maps/field-mobility/add-read-only-information-to-for...

View solution in original post

4 Replies
ChristopherCounsell
MVP Regular Contributor

Yes you can do this with an Info note and expression. Here is a guide that will run you through the steps:

https://www.esri.com/arcgis-blog/products/field-maps/field-mobility/add-read-only-information-to-for...

MeleKoneya
Frequent Contributor

This is great!     I am able to add the info element and make it conditionally available.    For some reason, I do not see the expression I created and only the attributes of the layer.    Is there a particular place to add an expression that uses a value from the layer for use in the URL?

0 Kudos
MeleKoneya
Frequent Contributor

I found a way to do it.   I added a field to the form and created an expression for the URL.    I then hid the field and saw the expression in the Info element when I went in to configure it. 

ChristopherCounsell
MVP Regular Contributor
Perfect! You can add expressions but not use them, then use them elsewhere
in the form.


https://doc.arcgis.com/en/field-maps/latest/prepare-maps/configure-the-form.htm#ESRI_SECTION2_5F65DF...

Glad it worked. I also learned something new so thanks for posting!
0 Kudos