#Automatically select Dropdown value based on the router id typescript

2 messages · Page 1 of 1 (latest)

raven hull
#

I have this Autocomplete component on my Formik and here is a scenario of what I want to achieve. there is an index page with the list of service providers, a user will click on the service provider name and the link will take the user to a page where they can update the service provider details. on that page , the service provider details are prepopulated to the text input fields but the service provider name is not displayed since it is a dropdown Autocomplete field so I want the service provider name to be automatically selected on the dropdown the moment a user clicks on that list to edit the details. please help its a deadline project here is the code:

lost stratus
#

this doesn't really seem like a typescript question. or if it is you haven't shared the part that is related to typescript