Frappe.web_form.get_value([fieldname]); is not working in client script in web form?

Get value of a particular field in client script of web form is not working. is there any other way ? please help

value = frappe.web_form.get_value([fieldname]);

frappe.web_form.get_values().fieldname

3 Likes

Thank you So Much @ahmadRagheb

it’s working in custom script doctype. but when I am using it in web form it’s giving error of undefined. please help.

@KS_Deal can you share the code to see for this app

or print screen your browser console

An error traceback or log output is best to help learn and avoid guesswork!

can you please share some code snippet for reference…?

I also found that there are inconsistencies of code should be used between the Client Script and the js controller file.