
Announcements
Hi,
There is multistep form where I have to show value in read only,but how to show that value?How to fetch that value to show in read only mode in multistep form in power pages?
I know how to convert that field in read only,But how to fetch that value to show in that field is my requirement?
@ragavanrajan @saudali_25 @Lucas001 @Mglat tagging you guys as you might have done this before.
Hi @KhushiMurkya24,
does that read only field somehow need to be dynamic?
Usually setting the read only shows what's currently entered in dataverse, that's all.
Fetching the value would be done with Liquid and JSON in your case. After that populate the field as I guess it should be something when the user selects another field or anything like that.
Get the needed value in a JSON and store them in a separate page where you can retrieve them from. Or use a for-loop depends on what works best in your case.
Have a look here for MS Learn: https://learn.microsoft.com/en-us/power-pages/configure/liquid/liquid-overview
Or here for a more detailed video: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwiW9qmHroGCA...
Once you have your JSON-Object use JSONparse and compare the input value to the JSON. Look out for a match of your column value and insert it with JS.
If you only want to insert a value into your read only you can use Javascript for that purpose.
--------------------------------------------------------------------------------------
Hope that helps.
If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.