---
sourceDocument: Yokohama Mobile Configuration and Navigation
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/mobile

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Mobile Configuration and Navigation

ft:clusterId :

    - mobile

bundleId :

    - mobile

workflow :

    - evelopment, Data and Analytics


---

# Define attachment sources available to users

# Define attachment sources available to users {#ariaid-title1}

Release version: Yokohama  
Updated January 30, 2025  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read  
Control the origin of where images and files are sourced from, including a phone's gallery, camera, or file system. This capability confirms that images can't be reused and verifies that they aren't AI-generated.

## Before you begin

Role required: admin

## About this task

You can limit the origins of attachments to ensure that images are sourced from one or all of the following:

* On-site via a camera
* From the user's phone gallery
* From the user's file system

{#attachment-source-define__ul_njp_plv_12c}This feature is supported for all attachment locations including: activity stream, functions, and input form screen. Within the input form screen, attachments can be added from the following areas, as shown in the table.  
Note:  
You can source image attachments from the camera and the gallery from both these areas. You cannot source videos or record videos. Only from the input action menu can you source images from the file system.
{#attachment-source-define__table_m54_fts_p2c__entry__2}

| Adding attachment types within an individual input value | Adding attachment types as part of an input action |
|-|-|
|   |   |
[ ]

{#attachment-source-define__table_m54_fts_p2c}  
Note:  
This feature is also supported for scripted screens within Mobile App Bridge and the Cabrillo JS module.

## Procedure

1. Navigate to AllSystem MobileMobile App Builder.  
   The Mobile App Builder opens in a new browser tab and displays the application scope selection screen.
2. Search for the application scope you are working in and then select the name of the application scope.  
   The Mobile App Builder categories home screen displays.
3. Select the attachment location for where you want to control the origin of the attachment source.

   | Attachment location | Procedure |
   | Function | 1. Select Functions from the menu and then select New. Alternatively, select an existing function record. 2. Select Upload attachment in the Type field of the Properties section. 3. Select New in the Buttons attribute section. The Button attribute record opens. 4. Leave the Button field with the default name. 5. Select hidden_attachment_sources from the Name field menu. 6. Enter values in the Value field from where you don't want images sourced from. Values can be <kbd class="ph userinput">camera</kbd>, <kbd class="ph userinput">files</kbd>, or <kbd class="ph userinput">gallery</kbd>, or any combination separated by commas. If this field is empty, then images and files can be sourced from all locations. 7. Select Save. {#attachment-source-define__ol_r5m_zdz_zdc} |
   | Activity stream | 1. Select the  All mobile records option from the menu. 2. From the  Record type  field, select Activity stream screen \[sys_sg_activity_stream_screen\]. 3. Select New or an existing activity stream record. The activity stream screen opens. 4. Select Choose in the Hidden attachment sources area. 5. Select the attachment sources that you want to hide. 6. Select Apply. 7. Select Save. {#attachment-source-define__ol_ssv_wdz_zdc} |
   | Input form screen (attachment type) | 1. Select the  Screens  category. 2. Select an existing input form screen. Note: If you need to create a new input form screen, follow the instructions starting from the topic [Configure an input form screen](https://www.servicenow.com/docs/MX8ZnrAGF3~_S5hUjOM4Bw "Configure an input parameter so that your users can see a list of records from their mobile app. To access a record from the list, a user just has to tap the record name."). 3. Select New in the Inputs area. For an explanation of the fields, refer to [Configure input form screen inputs](https://www.servicenow.com/docs/KQoGo1a~XlKqd~qWjcXx0w "Configure the input fields that your users use to enter information. You can use screen inputs to determine the input type, question text, placeholder values, and other attributes."). 4. Enter a Name and a Label for your new input. 5. Select <kbd class="ph userinput">Attachment</kbd> in the Input type field. 6. Select New in the Input attributes area. The Input form action attribute record opens. 7. Select HiddenAttachmentSources from the Name field. 8. Select either <kbd class="ph userinput">camera</kbd>, <kbd class="ph userinput">files</kbd>, or <kbd class="ph userinput">gallery</kbd>, from the Value field. The value you select is where you don't want images sourced from. Note: To prevent images and files from more than one source, add additional HiddenAttachmentSources attributes after you save the attribute you're currently configuring. 9. Select Save. {#attachment-source-define__ol_sxk_r2z_zdc} |
   | Input form screen (attachment input action) | 1. Select the  Screens  category. 2. Select an existing input form screen. Note: If you need to create a new input form screen, follow the instructions starting from the topic [Configure an input form screen](https://www.servicenow.com/docs/MX8ZnrAGF3~_S5hUjOM4Bw "Configure an input parameter so that your users can see a list of records from their mobile app. To access a record from the list, a user just has to tap the record name."). 3. Select New or open an existing record in the Actions area. Note: For an explanation of the fields, refer to [Configure input form actions in an input form screen](https://www.servicenow.com/docs/GWefub5v4Ux5~LHMT89tAw "Add a button next to input form fields to give users the ability to perform various input actions. These actions include adding a comment, adding one or more attachments, and navigating to other screens."). 4. Select <kbd class="ph userinput">Input action</kbd> in the Input type field. 5. Select New in the Action attributes area. The Input form action attribute record opens. 6. Select HiddenAttachmentSources from the Name field. 7. Select either <kbd class="ph userinput">camera</kbd> or <kbd class="ph userinput">gallery</kbd>, from the Value field. The value you select is where you don't want images sourced from. Note: To prevent images and files from more than one source, add additional HiddenAttachmentSources attributes after you save the attribute you're currently configuring. 8. Select Save. {#attachment-source-define__ol_uhk_yhq_p2c} |
   |-|-|

   {#attachment-source-define__choicetable_odj_n5y_zdc}

*[\>]: and then


