Try ERPNext Try Frappe Cloud Buy Support Partners Foundation

How to access a field in the frappe.ui.Dialog

I have a custom dialog box that will appear when a button is clicked.
image

Now inside this dialog box, I want to fetch the rest of the fields(which are item properties) based on the item_code (if exists) by a frappe.call, but in order to fetch that item code I need to access that, How can I access the item_code that user has entered.

I figured it out!
You can access that element with this cur_dialog.fields_dict.item_code.value

1 Like