cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to pre-populate the form field?

former_member614659
Participant
0 Kudos
1,501

Hello Experts,

I am working on lite-registration screen set.

We have populated email field of SAP CDC screen-set using js script at web page.

email is taken from URL of web page.

This logic, renders that email field of SAP CDC form is pre-populated as expected.

Email Field is read only.

Problem is when I submit the form, "formData" object doesn't collect email field value and system throws "missing required parameter " error(400002) for email field.

Please suggest if there is any best practice for pre-populating the data for lite user which holds his/her own data in URL or Body of https request

e.g. https://www.foo.com/lite?email=abc123@foo.com

Thanks,

Rohit

View Entire Topic
kobico
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Rohit

You're talking about lite account progression to full account?

former_member614659
Participant
0 Kudos

No, My user is basically redirected from third party system to website. When user lands on my website I publish Lite registration form. Here user comes with email address in URL query parameter. I want to use that email address from URL and pre populate the Lite registration form.

I have populated the email field using below js,

var input = document.getElementById("gigya-textbox-email");
input.value = email;


All seems good till pre populate email address in the form. but when submitted SAP CDC throws "missing required parameter " error(400002) for email field.

When I checked in debugging, FormModel and FormData objects are not capturing email information though it is already placed on the form.

kobico
Product and Topic Expert
Product and Topic Expert
0 Kudos

you can listen to onBeforeSubmit event and add this value to the form data
https://developers.gigya.com/display/GD/accounts.showScreenSet+JS#accounts.showScreenSetJS-onBeforeS...