Pre-filling user information
Pre-fill user information and order amounts in the onramp widget
Overview
You can pre-fill user information and order amounts using the defaultValues
property to enhance the user experience. For each field (except fiatAmount
), you can specify whether it should be editable or locked, giving you control over which information users can modify.
Available fields
User information fields
phone
: User's phone numberemail
: User's email addresstargetAddress
: Cryptocurrency wallet address where funds will be sent
Order information fields
fiatAmount
: Default fiat amount for the purchase (number only, always editable)
Field configuration
Each user information field supports the following configuration:
Example usage
Complete configuration
Locked target address
When you want to ensure funds are sent to a specific address:
Pre-filled but editable information
When you have user information but want to allow modifications: