<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Creating Variables Independent from Feature Layer? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-variables-independent-from-feature-layer/m-p/1171263#M42605</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm attempting to format an ADA survey with conditional formatting. Such that when a field worker enters an out of spec measurement, the question field they just populated becomes red. I've added a section of my form below for reference.&lt;/P&gt;&lt;P&gt;The below snippet shows the integer question for "GutterCounterSlope" and a note defining the compliance window for this attribute (Must be less than 5%). The third line is my attempt at calculating the background color (GCS_Color) for that GutterCounterSlope label.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This appears to work during the preview stage, but when I attempt to publish, S123 Connect views my GCS_Color calculate as an actual question and since it's not a value in my feature layer, I cannot publish it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="99.74440905017629%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="15.089514066496163%" height="62px"&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;type&lt;/P&gt;&lt;/TD&gt;&lt;TD width="25.31969309462916%" height="62px"&gt;name&lt;/TD&gt;&lt;TD width="29.283887468030688%" height="62px"&gt;label&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="62px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="62px"&gt;calculate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="15.089514066496163%" height="113px"&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;integer&lt;/P&gt;&lt;/TD&gt;&lt;TD width="25.31969309462916%" height="113px"&gt;GutterCounterSlope&lt;/TD&gt;&lt;TD width="29.283887468030688%" height="113px"&gt;&amp;lt;body bgcolor=${GCS_Color}&amp;gt;&amp;lt;font color="black"&amp;gt;(GCS) Gutter Counter Slope (%)&amp;lt;/font&amp;gt;&amp;lt;/body&amp;gt;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="113px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="113px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="15.089514066496163%" height="157px"&gt;note&lt;/TD&gt;&lt;TD width="25.31969309462916%" height="157px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="29.283887468030688%" height="157px"&gt;&amp;lt;div style="text-align:center; font-size:small; "&amp;gt;The gutter counter slope at the street or bottom of ramp runs shall be 5% maximum&amp;lt;/div&amp;gt;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="157px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="157px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="15.089514066496163%" height="47px"&gt;calculate&lt;/TD&gt;&lt;TD width="25.31969309462916%" height="47px"&gt;GCS_Color&lt;/TD&gt;&lt;TD width="29.283887468030688%" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="47px"&gt;if(${GutterCounterSlope}&amp;gt;5, "#ff7373", "")&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Is there a way to define variables that are independent from the Feature Layer that the survey is bound to?&lt;/U&gt; I would really like this solution to work as I cannot have 40+ 'color' fields for each measurement our crews will be performing. Alternatively, is there a different way I can format colors for my labels when compliance is not met on these measurements?&lt;/P&gt;&lt;P&gt;For reference, I utilized this documentation when putting this calculation together: &lt;A href="https://www.esriuk.com/en-gb/news/we-talk-tech/survey123-dynamic-colouring-and-advanced-summary-page" target="_blank" rel="noopener"&gt;https://www.esriuk.com/en-gb/news/we-talk-tech/survey123-dynamic-colouring-and-advanced-summary-page&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 19:39:26 GMT</pubDate>
    <dc:creator>ArvadaColorado</dc:creator>
    <dc:date>2022-05-05T19:39:26Z</dc:date>
    <item>
      <title>Creating Variables Independent from Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-variables-independent-from-feature-layer/m-p/1171263#M42605</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm attempting to format an ADA survey with conditional formatting. Such that when a field worker enters an out of spec measurement, the question field they just populated becomes red. I've added a section of my form below for reference.&lt;/P&gt;&lt;P&gt;The below snippet shows the integer question for "GutterCounterSlope" and a note defining the compliance window for this attribute (Must be less than 5%). The third line is my attempt at calculating the background color (GCS_Color) for that GutterCounterSlope label.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This appears to work during the preview stage, but when I attempt to publish, S123 Connect views my GCS_Color calculate as an actual question and since it's not a value in my feature layer, I cannot publish it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="99.74440905017629%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="15.089514066496163%" height="62px"&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;type&lt;/P&gt;&lt;/TD&gt;&lt;TD width="25.31969309462916%" height="62px"&gt;name&lt;/TD&gt;&lt;TD width="29.283887468030688%" height="62px"&gt;label&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="62px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="62px"&gt;calculate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="15.089514066496163%" height="113px"&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;integer&lt;/P&gt;&lt;/TD&gt;&lt;TD width="25.31969309462916%" height="113px"&gt;GutterCounterSlope&lt;/TD&gt;&lt;TD width="29.283887468030688%" height="113px"&gt;&amp;lt;body bgcolor=${GCS_Color}&amp;gt;&amp;lt;font color="black"&amp;gt;(GCS) Gutter Counter Slope (%)&amp;lt;/font&amp;gt;&amp;lt;/body&amp;gt;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="113px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="113px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="15.089514066496163%" height="157px"&gt;note&lt;/TD&gt;&lt;TD width="25.31969309462916%" height="157px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="29.283887468030688%" height="157px"&gt;&amp;lt;div style="text-align:center; font-size:small; "&amp;gt;The gutter counter slope at the street or bottom of ramp runs shall be 5% maximum&amp;lt;/div&amp;gt;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="157px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="157px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="15.089514066496163%" height="47px"&gt;calculate&lt;/TD&gt;&lt;TD width="25.31969309462916%" height="47px"&gt;GCS_Color&lt;/TD&gt;&lt;TD width="29.283887468030688%" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="15.089514066496163%" height="47px"&gt;if(${GutterCounterSlope}&amp;gt;5, "#ff7373", "")&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Is there a way to define variables that are independent from the Feature Layer that the survey is bound to?&lt;/U&gt; I would really like this solution to work as I cannot have 40+ 'color' fields for each measurement our crews will be performing. Alternatively, is there a different way I can format colors for my labels when compliance is not met on these measurements?&lt;/P&gt;&lt;P&gt;For reference, I utilized this documentation when putting this calculation together: &lt;A href="https://www.esriuk.com/en-gb/news/we-talk-tech/survey123-dynamic-colouring-and-advanced-summary-page" target="_blank" rel="noopener"&gt;https://www.esriuk.com/en-gb/news/we-talk-tech/survey123-dynamic-colouring-and-advanced-summary-page&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 19:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/creating-variables-independent-from-feature-layer/m-p/1171263#M42605</guid>
      <dc:creator>ArvadaColorado</dc:creator>
      <dc:date>2022-05-05T19:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Variables Independent from Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-variables-independent-from-feature-layer/m-p/1171265#M42606</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try this: put &lt;STRONG&gt;null&lt;/STRONG&gt; in bind::esri:fieldType column and publish.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 19:51:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/creating-variables-independent-from-feature-layer/m-p/1171265#M42606</guid>
      <dc:creator>josevaldes1</dc:creator>
      <dc:date>2022-05-05T19:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Variables Independent from Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-variables-independent-from-feature-layer/m-p/1171269#M42607</link>
      <description>&lt;P&gt;Hi Jose,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help! That solved the problem!&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 19:59:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/creating-variables-independent-from-feature-layer/m-p/1171269#M42607</guid>
      <dc:creator>ArvadaColorado</dc:creator>
      <dc:date>2022-05-05T19:59:47Z</dc:date>
    </item>
  </channel>
</rss>

