# Automatizaciones - Formulario registro miembros

**URL:** <https://forum.wixstudio.com/t/automatizaciones-formulario-registro-miembros/73455>\
**Category:** Ask the community\
**Tags:** members, wix-members-area\
**Created:** [September 9, 2025, 4:17pm UTC](https://forum.wixstudio.com/t/automatizaciones-formulario-registro-miembros/73455 "2025-09-09T16:17:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sofia\_Larrocca](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sofia_larrocca/32/110070_2.png) [@Sofia\_Larrocca](https://forum.wixstudio.com/u/Sofia_Larrocca)\
**Post date:** [September 9, 2025, 4:17pm UTC](https://forum.wixstudio.com/t/automatizaciones-formulario-registro-miembros/73455/1 "2025-09-09T16:17:15Z")

</div>

Hola,  
Estoy creando una automatización en mi sitio web con Wix y me gustaría que me ayudéis a configurarla correctamente.

Tengo un formulario de registro en el que el usuario debe indicar si es **cliente particular** o **profesional** (mediante un campo de selección).  
Me gustaría automatizar el siguiente flujo:

* * *

**CUANDO un nuevo usuario se registra:**

🔹 **SI selecciona “cliente particular”**  
→ Que se le **asigne automáticamente el rol de CLIENTE**  
→ Que reciba un **email de bienvenida personalizado**

🔹 **SI selecciona “profesional”**  
→ Que reciba un **email de bienvenida diferente** (avisando que su acceso será aprobado manualmente)  
→ Que se le **asigne el rol de PROFESIONAL**

* * *

¿Podéis explicarme paso a paso cómo configurar esta automatización, incluyendo la condición y la asignación de roles según la respuesta del formulario?

Gracias por vuestra ayuda.

---

<div class="post-metadata">

**Author:** ![Rob](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/rob/32/84134_2.png) [@Rob](https://forum.wixstudio.com/u/Rob)\
**Post date:** [September 10, 2025, 2:21pm UTC](https://forum.wixstudio.com/t/automatizaciones-formulario-registro-miembros/73455/2 "2025-09-10T14:21:12Z")

</div>

I don’t know if you have a third instance but if you do, you don’t have to create a third **else** path like I have in the screenshot.

 ![2025-09-10_09-29-01](https://us1.discourse-cdn.com/wix/original/3X/5/9/592342634c4b926dfa74607ff0e1b3f4b7843c07.png)

When creating the automation, you [can create a condition](https://support.wix.com/en/article/wix-automations-about-the-new-automations-builder#create-larger-and-more-complex-flows) to check what a field is and if it matches, it goes one path and if not, it follows the else path.

 ![image](https://us1.discourse-cdn.com/wix/original/3X/5/2/5212596b97b10d8a40a53157d7a02bef6352f907.png)

Their isn’t an action for assigning a role but you can use [code as mentioned in the member documentation to assign a specific role](https://dev.wix.com/docs/velo/apis/wix-members-backend/authorization/introduction).

```javascript
import { Permissions, webMethod } from “wix-web-module”;
import { authorization } from “wix-members-backend”;

export const myAssignRoleFunction = webMethod(Permissions.Anyone, () => {
 const roleId = “b62310c1-1c81-4ca9-9fe9-42b48f6e164e”; //add your relevant roleID here
 const memberId = “72751428-2743-4bda-acf5-4218a4279cd3”; //you need to get the memberID of the relevant user
 const options = {
suppressAuth: false,
};

return authorization
 .assignRole(roleId, memberId, options)
 .then(() => {
   console.log(“Role assigned to member”);
  })
  .catch((error) => {
   console.error(error);
  });
});

```

When you [create the member roles](https://support.wix.com/en/article/site-members-creating-member-roles), you can see the ID you’ll use for the roleID.

 ![image](https://us1.discourse-cdn.com/wix/original/3X/b/b/bb671704e3a385ed0d7f81f7e3f03b411c4ebcb4.png)

I hope this helps as a start.
