Disable editing reference selector after selecting a value from it

0
Is it possible to assign the first value from the list to the reference selector and then make it not editable?
asked
2 answers
0

Hi Ridhwik,

Yes you can. You would need to do this processing in the microflow though and on the page always make the field non editable.

I’m curious though why only select the first option by default – do you want to find out the first value based on some business logic or something else. If you shed more light on your usecase, maybe there is a better solution.

Hope this helps!

answered
0

Hi Ridhwik,

 

You need to use two views/refernece slectors for selecting options one is for editing and the other for non editing. Add a new boolean attribute let`s say as bool(default to false).  For edit field set the visbility as bool false and non edit set visibilty as bool true. Use onchange event for edit field which changes bool to true. You may commit and refresh in client, this attribute based on your requirement. So only non edit field appears next time.

answered