# SMS Collection and Registration in Scenes

Add an SMS opt-in form to your app or website using Scenes. Collecting phone numbers or registering SMS channels is available out of the box.

Now you can add a phone number field to [Scenes](https://www.airship.com/docs/reference/glossary/#scene) for collection or to register channels. We also added a way to validate user input in a screen.

## SMS

When creating a Scene, add the **SMS** content element to provide a field for registering a submitted phone number as a channel or only collecting it as data. Collected phone numbers are available in [Performance Analytics](https://www.airship.com/docs/reference/glossary/#pa). Registering a phone number as a channel automatically triggers the [Double Opt-In](https://www.airship.com/docs/reference/glossary/#double_opt_in) process, and the phone number is associated with the [Contact](https://www.airship.com/docs/reference/glossary/#contact) viewing the Scene.

You must also configure a button or image with the Submit Responses action and provide a label used for reporting. Options:

* Placeholder text that appears in the field before a user selects the field
* A content description to be announced by assistive technology, such as screen readers
* Make entering content in the field a requirement for making the Submit Responses button or image active

## Validation

Use the new **Validate Form** action to check the current screen for the presence of content in required fields, validate the format of entered phone numbers and email addresses, and either open another screen or close the Scene. Use this action to validate the input on each screen in a multi-screen form, and provide a Submit Responses button or image on the last screen.

You can set validation to occur when a user selects a button, text, or a screen. An error state is indicated for some fields. When the screen is valid, the selected behavior occurs: Next screen, Previous screen, Dismiss, or Dismiss and cancel Repeat.

## Requirements and documentation

Scenes are an [AXP](https://www.airship.com/docs/reference/feature-packages/) feature. The SMS content element and Validate Form action require minimum SDKs iOS 19.6 and Android 19.9.

Get all the details here:

* [SMS](https://www.airship.com/docs/guides/messaging/in-app-experiences/configuration/content/#sms) in *Configure Scene content*
* [Validate Form](https://www.airship.com/docs/guides/messaging/in-app-experiences/configuration/button-actions/#validate-form) in *Actions* for in-app experiences

To upgrade your SDK versions, follow our guides:

* [Android SDK migration guides](https://github.com/urbanairship/android-library/tree/main/documentation/migration#airship-android-sdk-migration-guides)
* [iOS SDK migration guides](https://github.com/urbanairship/ios-library/tree/main/Documentation/Migration#airship-ios-sdk-migration-guides)