What I understood is , You have a editable list view, you are selecting a drop down value but when next time while you open the page,previous selected value is not there.
If that’s the case, have a on change event for dropdown and commit the object in on change microflow.
Hi Priyanka ,
If I understand your use case correctly you want a dropdown , where the selection persists on page reload .
here is trick to do this
i understand your question you want to keep selected you dropdown after page refresh.
and in js action code tab inside your function you will get a paramter keep remember to tak input parameter in js action
and then go to code tab there
current parameter value set to the browser session storage
afetr that make a key and set your parameter value to the browser session storage
now till there you set your dropdown value to the session strorage of the browser so your last selected value of dropdown is in the browser and it will not changed untill you close the browser or overwrite it.
lets go to next step keep selected after page refresh
so for it on same page call place a microflow timer widget and call a nanoflow (after 3 sec or time according to take in page load) once
now here you will have to target your dropdown / refrensh selector
you can give a class to you refrence selector and target your select by document.querySelector
get value that we stored in session
and get value by your key name from session of browser
let sessionItem = sessionStorage.getItem("key");
and afeter it just assign this value of your selected dropdown
element = document.getElementById(“Dropdown”);
element.value = sessionItem;
it will automatically make select option of your dropdown
for window session refrence you can visit
Window sessionStorage Property (w3schools.com)
I hope It will help you.