I have confirmation alert. If I click in the confirmation OK, should visible the manufacturer field.

dhineshkumar
Tera Guru

Hi Experts 

I have the confirmation alert. If click on the OK I want to make visible the manufacturer filed. If I click on the cancel I want to make manufacturer field hide. 

Thanks in advance.

1 REPLY 1

debendudas
Mega Sage

Hi @dhineshkumar ,

You can use the below code:

 

 

var response = confirm("<Enter Your Message>");
	
// If user click on OK
if(response){
	g_form.setDisplay("manufacturer", true);
}
// If user click on Cancel
else{
	g_form.setDisplay("manufacturer", false);
}

 

 

If this solution helps you then, mark it as accepted solution ‌‌✔️ and give thumbs up👍