Table of Contents

Full working example of the page using registration API call

!!!IMPORTANT!!!

Replace mydomain.com with your members area URL

CLICK HERE TO SEE THE LIVE EXAMPLE

By default TradingPlatformId is set in the hidden field to MT4Live. You can change this value to:

You need to read the notes above the live form to get it working.

Simply analyze the source code of the page, it's self explanatory and well commented

Default Values

You can set default values for pick lists in registration form.

Fields that can have default value:

1. reg.defaults.titleid (Title) | Available values:

2. reg.defaults.leverage (Leverage) | Available values:

3. reg.defaults.currencyId (Currency) | Available values:

4. reg.defaults.tradingAccountTypeId (Trading Account Type) | Available values:

EXAMPLE USAGE

reg.defaults.leverage = 500;
reg.defaults.currencyId = 151;
reg.defaults.tradingAccountTypeId = 1;

This code must be included in java script in the end of page. Important thing is that this code needs to be loaded after picklists are filled with data.

!!! Important !!!

Default values requires registrationapi.js in version 1.8