My company has a Microsoft Form that I have to fill out around 10 times every month, but the actual form data that I input doesn't change very much. For the fields that don't change I want to be able to programmatically fill it out, likely using javascript. Using the "User Javascript and CSS" chrome extension I have already injected javascript to put a button on the page I can click to fill it out, but when I click "Submit" the form doesn't detect that the fields have been populated.
Here is an example form: https://forms.office.com/Pages/ResponsePage.aspx?id=A2isORETDk26ciZZHMzhJJh3e-CRp49LqjxXVoNyf99UQVZZTkdHS0ZVTkJHSDg5RE1VNkZDWVJPRS4u
Here is a bit of jquery to fill out the text box
$('#form-container > div > div > div.office-form-content.office-form-page-padding > div > div.office-form.office-form-theme-shadow > div.office-form-body > div:nth-child(2) > div:nth-child(2) > div.office-form-question-content.office-form-theme-focus-border > div.office-form-question-element > div > div > div > input')[0].value = "hello"
Notice that the field becomes blank and receives a validation error when you click "Submit".
How can I populate these fields programmatically in a way that the data is received by the form?