Add Button to Form to Open Hyperlink for Item

by | Jan 9, 2023 | Frappe Framework | 0 comments

When the user pastes the URL in the Data field and then clicks the Button then will open the link according.

frappe.ui.form.on('Item', { 
    button_field_name: function(frm) { 
        var openlink = window.open(frm.doc.your_data_field);
    } 
});

 

Button: button_field_name
Data field: your_data_field

https://discuss.erpnext.com/t/add-button-to-form-to-open-hyperlink-for-item/96466

By Aadhil PM

0 Comments

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *