Hey,
Right now we’re building functionality so that a search filter field is pre-populated with a value based on the user’s groups. I’ve managed to get the field to pre-populate with the proper value, but obviously this doesn’t do anything to the associated list as the search form hasn’t been submitted yet. We’d like it so the list is filtered on page load, i.e. when the event is fired.
The callback is triggered by the E1 event, so the field where it’s meant to pre-populate both triggers and is triggered by the E1 event, and will fire a Code Studio fragment callback that pre-populates it. All straight-forward and as expected.
How could I get it to then submit the form by triggering the submit button within the same widget and fragment callback? I can’t find any specific Code Studio API method for this, and I’m not sure how I’d be able to use a JS .click() method as it’s not obvious to me how we can drill down specifically to the input element from a different fragment.
Any help would be greatly appreciated, and ideally we’d like to avoid further complexity with custom presenters or widgets – but if this is the only solution, then so be it.
Cheers!