Custom Action - Set Column Value weird reset

Hi Everyone,

I’m trying to set a role value in the user profile depending on which button someone clicks and which form they submit.

For example, if they click “newly wed” then after they submit their onboarding form, I want to have as a role “newlyWed” but if someone goes through the “vendor” path, I want them to have vendor set as the role in the user table.
The value set in the Role column is without the quotation marks.

For some reason, I do manage to set it and I see it in the user table but then, a few second later, it seems to disappear from the cell and it goes blank,

Not sure where the problem is ?
if you have any pointers, that’d be great.

Thanks

Unfortunately, you can’t change the role column from the app. It might work when previewing from the builder, but it won’t work in production.

You could use manual or webhook trigger workflow. But keep in mind that you must add verifications to make sur that the user has access to change these properties.

I will soon share a tutorial on how to share row owners based on row id and multiple roles. That might interest you.

1 Like

As @MaximeBaker mentioned, you’ll want to add in some verifications, but this is a brief demo of the process:

2 Likes