# What is the #ID for Member Account & Profile Info Update Info Button

**URL:** <https://forum.wixstudio.com/t/what-is-the-id-for-member-account-profile-info-update-info-button/69576>\
**Category:** Ask the community\
**Tags:** question, wix-studio, code\
**Created:** [March 13, 2025, 6:05am UTC](https://forum.wixstudio.com/t/what-is-the-id-for-member-account-profile-info-update-info-button/69576 "2025-03-13T06:05:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kayden\_Anderson](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/kayden_anderson/32/103061_2.png) [@Kayden\_Anderson](https://forum.wixstudio.com/u/Kayden_Anderson)\
**Post date:** [March 13, 2025, 6:05am UTC](https://forum.wixstudio.com/t/what-is-the-id-for-member-account-profile-info-update-info-button/69576/1 "2025-03-13T06:05:48Z")

</div>

**Question:**  
I want to make sure each field has data in the Member Account & Profile Info, if it is empty I want it to appear red and with an asterisk to show they need to fill it out (making it sort of mandatory)  
I believe the issue I am having in my code is that I can’t reference the ID of the update info button so that it goes through.

**Product:**  
Wix Studio

**What are you trying to achieve:**  
I am trying to make users confirm that all data necessary for my service is entered

**What have you already tried:**  
Something I am hesitant to try although contemplating if there is no way to reference the button is to just recreate the account page with my own button as in wix it seems the rule of thumb is that if it is premade you are going to struggle customising it.

**Additional information:**

```javascript
$w.onReady(function () {
    validateFields(); // Check fields on load

    $w("#updateInfoButton").onClick(() => {
        validateFields();
    });
});

// Function to validate fields
function validateFields() {
    let isValid = true;

    // List of required fields
    let requiredFields = [
        { id: "#firstName", label: "First Name" },
        { id: "#lastName", label: "Last Name" },
        { id: "#phone", label: "Phone" },
        { id: "#street", label: "Street" },
        { id: "#city", label: "City" },
        { id: "#zipcode", label: "Zipcode" },
        { id: "#country", label: "Country" }
    ];

    // Loop through fields and validate
    requiredFields.forEach(field => {
        let input = $w(field.id);
        if (input.value.trim() === "") {
            isValid = false;
            input.style.borderColor = "red"; // Make border red
            if ($w(field.id + "Asterisk")) $w(field.id + "Asterisk").show(); // Show asterisk if added
        } else {
            input.style.borderColor = ""; // Reset border color
            if ($w(field.id + "Asterisk")) $w(field.id + "Asterisk").hide(); // Hide asterisk if added
        }
    });

    if (!isValid) {
        $w("#errorMessage").text = "Please fill in all required fields.";
        $w("#errorMessage").show();
    } else {
        $w("#errorMessage").hide();
        console.log("All fields are valid!");
    }
}

```

 ![image](https://us1.discourse-cdn.com/wix/original/3X/5/4/54f0d0a72742ecd6893413caa4a4ee5570515113.png)

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [March 13, 2025, 10:50am UTC](https://forum.wixstudio.com/t/what-is-the-id-for-member-account-profile-info-update-info-button/69576/2 "2025-03-13T10:50:14Z")

</div>

When you select an element, you’ll find the ID in the “Properties & Events” panel

 ![Screenshot 2025-03-13 at 10.47.04](https://us1.discourse-cdn.com/wix/original/3X/4/2/425229256c6836a96473ff7dced46c976473252d.png)

That being said, unless the widget (in this case the members area) exposes functions or properties that you can customize, it won’t be possible to interact with elements within the widget.

The members area doesn’t do this, so you’ll likely want to create a custom page that replicates this functionality. I’m guessing it’s the fact you want to make these fields required, right?
