Invite user workflow

I am currently setting up a workflow where user A can invite user B to their team via form submission.

When user B is invited, they are added to the User table. I want to be able to set a field in this tabe “Onboarding/Organization” = true, but I am unable to select the newly invited user - “This Row” selects the first row in the table and User Profile Row selects the submitter.

Any ideas?

Don’t use an onSubmit Set Column Values action. Instead, pass the value with the form as a column value.

3 Likes

Cool, how do I set static values though?

There are a few ways you could do it. What I usually do is create a column in my User Profile row that contains the value I need, and then use that.

Another method that some folks use is a hidden input component in the form screen with a default value.

3 Likes

Oh interesting. Would love to see how people are doing the hidden component method. I have a few fields that I need to populate, so I don’t want to create user column fields for each if I can avoid it.

  • Add an entry component to your form.
  • When configuring the entry component, set a default value.
  • Now hide the entry component from view with a visibility condition that is always false. If you have a RowID column (which preferably you always do), the condition “RowID is empty” is a good false condition, because it will always be false. Or if your app has required sign-in, then a condition on the Users table “Email is empty” would also work.
2 Likes

Brilliant! Thank you!

1 Like

Please note that don’t put those hidden components into a container and try to hide just the container. I tried it just yesterday thinking I saved myself some work, but it didn’t send the values over.

1 Like