# Current Location

## Ask Current Location Card

This typically includes a clear call-to-action, such as a button labeled "Share Location," which, when tapped, triggers WhatsApp's built-in location sharing feature. This functionality is especially useful for services that rely on location-based data to enhance customer support, delivery, or local service offerings.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FRgI780GVSFAQFarawhGG%2FScreenshot%202025-09-18%20153831.png?alt=media&#x26;token=06b387f4-a48c-4e06-915f-ff08af97da28" alt=""><figcaption></figcaption></figure>

## Question Text

Contains the prompt text asking the user to share their location.

**For example:** "Please share current location so we can send your ordered products."

You can format the text using **Bold**, *Italic*, or ~~Strikethrough~~. Use asterisks (\*) for Bold, underscores (\_) for Italic, and tildes (\~) for Strikethrough, as shown in the text below.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FDGMxR358dzC2RpV2kJQz%2FScreenshot%202025-02-28%20162859.png?alt=media&#x26;token=7752e3ed-cb80-457c-a8a2-b25f3a53844e" alt=""><figcaption></figcaption></figure>

## Advanced Settings

For the validation settings, you can set the attempt limit to 1. The Validation Error Message is optional. Specify the Action on Invalid Response, and enable the Additional Validation Settings.<br>

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FYlFzfyQuY1DNrDAQONu2%2FScreenshot%202025-02-28%20163330.png?alt=media&#x26;token=9b2a62b6-92eb-4a7a-ba55-1bebcf774087" alt=""><figcaption></figcaption></figure>

## Validation settings

In the additional validation settings, specify the **Minimum character, Maximum character, and Regex.** These validation settings help ensure that the location data collected is both present and usable for your application's requirements.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FOj2bL9iU4QMdcDbjqKNi%2FScreenshot%202025-02-28%20163741.png?alt=media&#x26;token=7670b7a9-972b-41ba-8436-8a4665a829f4" alt=""><figcaption></figcaption></figure>

## Save Response in the Variable

You have the option to store the user response in a variable. For example, you can create a variable called `usage_location` to store the user response.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2F4sUKgKLO3fTOQzl4subJ%2FScreenshot%202025-02-28%20163953.png?alt=media&#x26;token=f700584d-4ea7-4173-bc95-744af1223801" alt=""><figcaption></figcaption></figure>

Once you have set all the fields required and click on **SAVE.**
