Tassos Marinos Developer of Joomla Extensions

Create User Accounts with Convert Forms

Published in Convert Forms
Updated 20 Dec, 2023

Do you wish to enable user registration on your Joomla site effortlessly? Are you seeking a seamless way to create user accounts when individuals submit a form automatically?

You can easily design personalized user registration forms to gather specific user information. Whether you're looking to onboard new members, subscribers, or any other type of user, Convert Forms User Account Task simplifies the process, making it quick and hassle-free.

This guide will walk you through the steps to allow users to create accounts on your Joomla site without delving into complex coding. This straightforward setup ensures a swift process, enabling you to manage user registrations promptly.

TABLE OF CONTENTS

Requirements

To use the User Account integration, there are a few requirements you need to meet, listed below:

  • Ensure you have Convert Forms Pro installed. You can easily upgrade to Pro if you're currently in the Free version
  • The "Convert Forms - Apps - User Account" plugin is enabled.

Setting Up User Account Task

To set up the User Account task and create new user accounts, go into your form, and follow the steps listed below:

Select App

From within your form, click on Tasks > CREATE YOUR FIRST TASK.

Create First Task

On the modal that will open, select the User Account task.

Select PHP Task

Select New Submission under Trigger and Create Joomla User Account under Action on the next screen, and click CONTINUE.

Select PHP Trigger and Action

Setup Action

After you've set up the trigger, and action, it's time to set up the action itself and configure all available settings. We’ve outlined what each of these does below.

Setup Action PHP Task

Email Address

The email address that will be assigned to the newly created user.

Full Name

The full name that will be assigned to the newly created user.

Username

The username that will be assigned to the newly created user.

Password

The password of the new user. You can either choose "Generate Random Password" or select any available mapping option.

User Groups

The user groups of the user. You can select one or more user groups for the new user.

New User Account Activation

Select the requirement for account activation.
The available options are:
  • Use Global: It will use the option set in User Configuration Page.
  • None: The user account will be activated immediately and the user can log in straight away (even if their email address is invalid).
  • Self: The User will be emailed a link to activate their account before they can log in.
  • Administrator: The administrator will be emailed a link to activate their account before they can log in. Then all users set to receive system emails and who have the permission to create users will be notified to activate the user's account.

Add Conditional Logic

Conditional logic makes it possible to run tasks only if specific criteria are met, like a user’s email address matching a certain domain, the user being associated with a certain Joomla User Group, or a form submission having a specific value.

While editing the User Account task, go to the Setup Action step and scroll down to the Conditional Logic section to set up Conditional Logic. Here's where you define all the rules the task should meet to run.

For example, let's say we need to create a new account, only if the email is coming from a specific domain: @domain.com.

  1. Click to enable the Run this task when certain conditions are met.
  2. Click Add Your First Condition.
  3. Select the Email field in the Trigger dropdown.
  4. Select Contains in the Operator dropdown.
  5. Enter @domain.com in the value. Replace this with your domain name.

The condition should look like this:

PHP Task Conditional Logic Example

You can read more on Conditional Logic on the Working with Tasks documentation page.

Activate Task

The final step is to enable our task. To do so, click the toggle on the dialog’s top right corner, as shown in the screenshot below.

Enable PHP Task

Finally, click Save to save the task, close the dialog, and then click Save from the top right corner of the form builder to save the changes on the form.

Congratulations! You’ve successfully created a form that will create new user accounts whenever the form is successfully submitted!

Frequently Asked Questions

Can I populate user profile fields?

Unfortunately, updating user profile fields is not currently supported, but it’s on our plans.

Can I populate user custom fields?

Unfortunately, updating user custom fields is not currently supported, but it’s on our plans.