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

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.
