Have an ajax callback function within which the data gets generated dynamically based on the custom input from form fields.
For it to work correctly I have to reload the page, change the form inputs and submit.
I've realized it may have to do with the cache and tried to avoid it by setting the routing.yml file as below:
options: no_cache: 'TRUE'
Not sure how to use cache tags here, as I do not have any tags defined Tried to rebuild the form within the callback which didn't work either. The form input fields does not get cleared even after reloading the page and I'm confused why this happens even after the no_cache is set to true?