In a registration form, after the user enters their e-mail address, the system wants to automatically generate the username from this e-mail address. For example, when the user types “user@kuika.com”, the system should automatically write the username as “user” in another field in the form. You can easily do this with the Set Value Of action in Kuika.
Add Set Value Of Action
- Log in to the Kuika platform.
- Select the project you will work on from the Apps screen.
- Switch to the UI Design module and open the screen with the form.
- Open the Properties panel on the right side.
- Select this field to define an action in the Email field.
- From the + ADD ACTION drop-down menu:
- Click Onclick → UI Control → Set Value Of.
Configure Set Value Of Parameters
In the panel that opens, configure the following fields:
- Component to Change: Select the username field (example: txtUsername).
- Value: Type an expression that takes the part of the email address before the @ sign.
This will automatically update the username field as the user enters values in the e-mail field.
After Action Usage
When Set Value Of action is executed:
- The information entered in the e-mail field is immediately reflected in the username field.
- The user does not need to enter the same information a second time.
- The form filling process speeds up and the user experience improves.
- Forms become smarter and more interactive.