2
0
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:
Oliver Walters
2020-08-26 22:35:36 +10:00
parent 0b4f732160
commit d44ad541eb
2 changed files with 53 additions and 0 deletions

View File

@ -212,6 +212,14 @@
location: {{ location.id }}
{% endif %}
},
callback: [
{
field: 'part',
action: function(value) {
console.log('value: ' + value);
}
},
],
secondary: [
{
field: 'part',