Hello, I'd like to add a login functionality before my form display. This login goes via an external REST api, I send the login details, and the REST api sends me a number back that I have to add to the form if the login is succesful. But I am not sure how to proceed.
I think I need to use Javascript to send the details to the REST api, and then display the form. But the thing is, I don't want the form to be displayed at all before the login (so that spammers or anyone can't fill in the form) anyone has an idea how to do this the best way?
I think I need to use Javascript to send the details to the REST api, and then display the form. But the thing is, I don't want the form to be displayed at all before the login (so that spammers or anyone can't fill in the form) anyone has an idea how to do this the best way?