Try ERPNext Buy Support Partners Foundation Foundation Members

Unable to input data into web form

Hi,

Following is the code in the .js of the web form to input value into a currency field ‘amount’ in the web form:

frappe.ready(function() {
    $('input[data-fieldname="amount"]').val(20000);
})

However, when the form is loaded, no value is input into the amount field.

Thank you.