Landing page - custom Javascript error

Hi all,

We have developed one landing page in Unbounce and done the API integration. In our API we have 2 fields as Firstname and Lastname. Both fields are mandatory and allow only alphabets. And in form, we have only one filed as Name.

We have created custom javascript for the same but it’s not working properly.

e.g Name = Sachin Tendulkar
we need to pass Sachin in Firstname and Tendulkar as Lastname

If both fields are added separately then it works but in when we use Javascript for combination it is not working. Showing Special characters are not allowed.

Hey @kedar.kulkarni

I don’t think the API is built to determine multiple sets of text from a single form input. Your best option to get things working properly is to use both a First Name and a Last Name form field.