mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 03:00:54 +00:00
Add "callback" functionality for modal forms when a given field is changed
- Attach callback function - Add a function to retrieve a field by name
This commit is contained in:
@ -212,6 +212,14 @@
|
||||
location: {{ location.id }}
|
||||
{% endif %}
|
||||
},
|
||||
callback: [
|
||||
{
|
||||
field: 'part',
|
||||
action: function(value) {
|
||||
console.log('value: ' + value);
|
||||
}
|
||||
},
|
||||
],
|
||||
secondary: [
|
||||
{
|
||||
field: 'part',
|
||||
|
Reference in New Issue
Block a user