<?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 Re: embed object ID into photos as a watermark in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364608#M53638</link>
    <description>&lt;P&gt;That would require the photos to be in a separate table, wouldn't it?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2023 21:23:42 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2023-12-27T21:23:42Z</dc:date>
    <item>
      <title>embed object ID into photos as a watermark</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364363#M53615</link>
      <description>&lt;P&gt;As the subject title suggests I'm attempting to embed the "objectID" into each photo as a watermark so that when that photo is downloaded as a report, the ObjectID will be visible.&lt;/P&gt;&lt;P&gt;I've been referencing the following document for help:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-photo-watermarks/ba-p/893593" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-photo-watermarks/ba-p/893593&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think I could create a new field, text type question for ObjectID. But since ObjectID is an Auto-increment field, I assume there's another approach I've failed to consider.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;EuropaxEarth&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 21:34:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364363#M53615</guid>
      <dc:creator>EuropaxEarth</dc:creator>
      <dc:date>2023-12-26T21:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: embed object ID into photos as a watermark</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364370#M53618</link>
      <description>&lt;P&gt;When creating new features, the ObjectID doesn't even exist until the form is submitted. This &lt;EM&gt;might&lt;/EM&gt; work for editing existing features, but the ObjectID usually isn't exposed in the form anyway.&lt;/P&gt;&lt;P&gt;What you might be able to do is include a hidden UUID field in your form, and use the formula &lt;STRONG&gt;uuid()&lt;/STRONG&gt; to fill it in. Then call that same field in the watermark. This will uniquely identify the record to which the photo belongs, but in a way that will work with the watermarking options.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 22:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364370#M53618</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-12-26T22:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: embed object ID into photos as a watermark</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364392#M53620</link>
      <description>&lt;P&gt;Good point about the ObjectID's not existing until the survey's been published. Thank you!&lt;/P&gt;&lt;P&gt;After creating a UUID text field, I see the UUID value in the Survey123 Connect is very "lengthy" (for lack of a better word).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EuropaxEarth_0-1703635885929.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89984iB5C7AE562126CCCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EuropaxEarth_0-1703635885929.png" alt="EuropaxEarth_0-1703635885929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I originally wanted to use "Object ID" because it assigns integers ( 1,2, etc) for each image. So if 10 photos were submitted I'd like the watermark to read &lt;EM&gt;photo 1 - photo 10&amp;nbsp;&amp;nbsp;&lt;/EM&gt;for each of the 10 photos. Thus, UUID may not be the value I'm looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I'd need to create a watermark code that assigns unique integer values for each photo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 00:27:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364392#M53620</guid>
      <dc:creator>EuropaxEarth</dc:creator>
      <dc:date>2023-12-27T00:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: embed object ID into photos as a watermark</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364421#M53622</link>
      <description>&lt;P&gt;I feel like there may be a disconnect between what you are asking for and the desired outcome here. What you hope to happen may be possible, but more details would be needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What, precisely, is the desired outcome here? E.g., Can the user take more than one photo per submission? Do you just want the photos numbered 1 - x in the feature report?&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you simply want the photos assigned a number &lt;EM&gt;within&lt;/EM&gt; the survey, you could add a counter into a repeat along side the &amp;nbsp;photos that counts up (thus numbering your photos 1 - x within any given survey, which &amp;nbsp;you could then add that as a watermark to the photos).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 05:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364421#M53622</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2023-12-27T05:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: embed object ID into photos as a watermark</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364500#M53626</link>
      <description>&lt;P&gt;Yes, let me clarify.&lt;/P&gt;&lt;P&gt;In this survey, users can take up to 50 photos per submission. These photos are geo-located. When viewing the submission results in Map Viewer I'd like for the coordinates and Photo ID to be watermarked in the photo. In the example below, the photo is the first of 10 that have been submitted. I've already watermarked the coordinate points in the bottom right hand corner. Since the photo below is the first photo, I would like "Photo 1" to be watermarked in the bottom left hand corner. Same thing for the remaining 9 photos (Photo 2, Photo 3, etc.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EuropaxEarth_2-1703689811053.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90010iAD8401F0CA8F15BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EuropaxEarth_2-1703689811053.png" alt="EuropaxEarth_2-1703689811053.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately, I would like a unique identifier embedded into each photo&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 15:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364500#M53626</guid>
      <dc:creator>EuropaxEarth</dc:creator>
      <dc:date>2023-12-27T15:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: embed object ID into photos as a watermark</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364502#M53627</link>
      <description>&lt;P&gt;I see, you want the integer to be based on the number of photos, not the form's objectid?&lt;/P&gt;&lt;P&gt;That sort of thing is possible with repeats, but I don't think I've seen it for photos. Here's a rather inelegant and tedious way to do it:&lt;/P&gt;&lt;P&gt;Create 50 &lt;STRONG&gt;image &lt;/STRONG&gt;questions in your form spreadsheet. Hard-code the watermark in each to simply say "Photo 1" for the first, "Photo 2" for the second, and so on. That would make a gigantic form, though, so we need a way of hiding the photo questions unless they're needed.&lt;/P&gt;&lt;P&gt;Below the 50 image questions, add an integer question, let's call it "photo_count", for "how many photos do you want to attach?" and set its style to &lt;EM&gt;spinner&lt;/EM&gt;. Have it default to 1. Then in the 50 image questions, give it a conditional visibility of &lt;STRONG&gt;${photo_count} &amp;gt;= n &lt;/STRONG&gt;where "n" is the photo number.&lt;/P&gt;&lt;P&gt;In that way, you'll start the form only seeing a single photo question, and below that, a spinner with a 1 in it. Clicking the "+" on the spinner will increment the photo_count, and then the next photo question will become visible just above the spinner.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 15:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364502#M53627</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-12-27T15:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: embed object ID into photos as a watermark</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364565#M53629</link>
      <description>&lt;P&gt;I've created one image question that has the constraint set to 50. Similar to what you said, this allows the form to only show a single photo question - giving users the option to increase/decrease the amount of photos they wish to take by clicking the "+" or + "-".&lt;/P&gt;&lt;P&gt;Ideally, - and I'm still working on this - I could write a quick watermark script "Photo: x" where x equals the order position of that photo ( i.e. the 5th photo in a particular submission will be watermarked "photo:5") WITHOUT having to manually type in 50 image questions. However, I'd have to find a way for this watermark question to be a loop which so far, can only be done if I type in 50 image questions and have the watermark read photo: 1, Photo 2: … Photo: 50.&lt;/P&gt;&lt;P&gt;Basically, I'm trying to see if I can assign the integers based on the number of photos without having to manually create 50 image questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I've attached the XLS form if that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 18:37:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364565#M53629</guid>
      <dc:creator>EuropaxEarth</dc:creator>
      <dc:date>2023-12-27T18:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: embed object ID into photos as a watermark</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364605#M53636</link>
      <description>&lt;P&gt;I'd just use &lt;EM&gt;position(..)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Drop that in your repeat. Each photo would then have a number associated with it, based on its position in the repeat. Use that calculate in your photo watermark.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_0-1703711939901.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90031iA61E2527D5ED1005/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_0-1703711939901.png" alt="abureaux_0-1703711939901.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_1-1703711994813.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90032iABC92416EE645253/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_1-1703711994813.png" alt="abureaux_1-1703711994813.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 21:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364605#M53636</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2023-12-27T21:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: embed object ID into photos as a watermark</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364608#M53638</link>
      <description>&lt;P&gt;That would require the photos to be in a separate table, wouldn't it?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 21:23:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364608#M53638</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-12-27T21:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: embed object ID into photos as a watermark</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364620#M53642</link>
      <description>&lt;P&gt;All I did was add &lt;EM&gt;position(..)&lt;/EM&gt; into the preexisting repeat alongside the image question. So, the structure hasn't changed.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 21:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364620#M53642</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2023-12-27T21:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: embed object ID into photos as a watermark</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364886#M53667</link>
      <description>&lt;P&gt;Based on your recommendations and this &lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-photo-watermarks/ba-p/893593" target="_self"&gt;esri blog post&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I created a new integer datatype to return an integer reflecting the index in the repeat. In the calculations field I put in the following function:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;position(..)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;^ &lt;/I&gt;&lt;SPAN&gt;which returns the index of the current record in a repeat&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I created a new calculate datatype. I need this to create a watermark ( it doesn't appear in the survey. It is very similar to a hidden question.) Under the calculation field, I did the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;concat("Photo ", ${photo_num}, "&amp;amp;color=red&amp;amp;outlineColor=black&amp;amp;haloColor=white&amp;amp;size=26&amp;amp;bold=true")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, under the existing image datatype, I scrolled over to the calculation field and typed in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;bottomLeftWatermark=${watermark} watermark="Lat: @[Latitude] \n Lon: @[Longitude]&amp;amp;color=red&amp;amp;outlineColor=black&amp;amp;size=26&amp;amp;bold=true&amp;amp;margin=10"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This creates two watermarks: the photo number and the coordinate point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both for your assistance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 22:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/embed-object-id-into-photos-as-a-watermark/m-p/1364886#M53667</guid>
      <dc:creator>EuropaxEarth</dc:creator>
      <dc:date>2023-12-28T22:24:36Z</dc:date>
    </item>
  </channel>
</rss>

