I'm using Rappid to diagram relationship between objects. I need to customize the inspector. I want to use select2 plugin to replace select-box when the values are too many. To do that i used an example that appear in the documentation that use renderFieldContent to render the special fields I define in the inspector.js my function and the object appear correctly, but in addition i need that another field appear when i had selected any value in mi select2, to do that I define the following "when"
when: {
and: [
{ ne: { 'attrs/attributes/to_eval': '' } },
{ ne: { 'attrs/attributes/to_eval': null } },
]
},
The problem is the following: When I change the selected option for the select2 the conditions is not validated.
How can i run the validation? I need to declare an event for select2, trigger an inspector event or i need to run the validation manually?