Hi @siva09217,
Thanks for all of your responses.
Firstly, Forms currently only works for the post-login flow. It would not work for the pre-user registration or post-user registration flows. (Reference: Frequently Asked Questions on Forms for Actions in Early Access)
When you use a post-login Action, you can add a check for the user’s first login attempt to prompt them for the additional fields with Forms. Note that a user automatically logs in immediately after signing up by default, which is what makes this work.
// Example using the post-login trigger
exports.onExecutePostLogin = async (event, api) => {
if(event.stats.logins_count === 1){
api.prompt.render(':form_id');
}
}
exports.onContinuePostLogin = async (event, api) => {
// Add your logic after completing the form
}
Alternatively, you can follow our knowledge solution at Configure Additional Signup Fields on the Universal Login Page, which guides you on how to include them directly on the sign-up page instead.
Thanks,
Rueben