Bootstrapvalidation and returned value

Bootstrapvalidation and returned value

Hello For one of my HTML form, I have one field called password, first I want tot check if it is null or not, and then it would check in background using remote call using URL to know if that is valid or not. and from backend process it would return wheter does it exist or not and other field value to update the iframe content/src dynamically.

I know using remote I could go to backend and check for validations however, I am not sure on I can assign value to existing field if it is succeed  and returns some value.


Could anyone please help me on this, I am using bootstrapValiator plugin as of now and polygon icon to show green and red icon in field.

Also I am not sure if this is correct forum or not.