I am trying to autofill an MS Sharepoint form with a userscript/jQuery.
The standard inputs and comboboxes are not an issue using the standard $( selector ).val( value );
or clicking an element in the generated list. The issue arises with selecting the user from a dynamic combobox that seems to be a more complex component and not a standard combobox.
This powerapps/appmagic? field dynamically fetches the user list based on a filter value entered into an input field. I have tried setting the input field using .val( value )
and .attr( 'value', value )
as well as manually filling the span fields displayed when the input is hidden. I have attempted manually triggering the change, keyup, keydown, keypress and input events on the input field and document, but the dynamic list is not populated or displayed to allow me to select an item from it. If I manually add or remove a letter to the filter after my pre-populated value, it works as expected so something behaves differently when I dynamically populate the input field.
Under the DOM inspector, the reactive event seems to be document.input as disabling this stops the population of the combobox under any condition.
Does anyone have experience with these fields and know how I can dynamically populate this input and have the list generate?