To pre-fill the fields of the KYC Plugin form, the data is sent using a GET method query string parameter called "data" with the value encoded in base 64.

STEP 1) Create the data value

The value that will be added to data query string parameter, is the string with the values for autocompleting the form.

Example:

   string = "dob_day=04&&dob_month=04&&dob_year=1989"

Note: Data with your name and value separated by the symbol &&

Attribute table

STEP 2) Converting string to base 64 

The generated string must be encoded in Base64

#Encoding 

encoded_string = base64.b64encode(string)

#Result
"ZG9iX2RheT0wNCYmZG9iX21vbnRoPTA0JiZkb2JfeWVhcj0xOTg5"

STEP 3) Creating URL 

Add the parameter 'data' with the value in base64 to the url of the form

Example:

http://regtech.identitymind.store/viewform/cftgg/?data=ZG9iX2RheT0wNCYmZG9iX21vbnRoPTA0JiZkb2JfeWVhcj0xOTg

Note: Please remember to replace the form id in the viewform URL

Did this answer your question?