Integrate React js with Confirmit instead of backend API
If you have CV submission form written on react js and you want to submit it on confirmit.
So how can we do this?
Look at the index.html file
How to handle forward, backward and normal click.
Confirmit work with two buttons one is forwardbutton and second is backbutton.Whenever we click on next tab we can call forwardbutton and previous tab we can call backbutton.Let's take an example.
- document.querySelector(‘#forwardbutton’).click();
Note — Whenever we write this confirmit read this id #forwardbutton and handle itself which page to show. Routing and pages showed all are handled by Confirmit not by react js routing.
2. document.querySelector(‘#backbutton’).click();
3. Normal click —
How to insert value into input filed and submit form
document.getElementById(‘LinkData’).value = document.getElementById(‘saveURL’).innerText;
document.getElementById(‘ctlform’).submit();
Note — LinkData is input field and we taking text from saveURL and insert into value of LinkData and after that we are submitting the form.
This is how you can check your Confirmit fields in your inspect elements section by removing display none class.