You cant access the UI elements’ property in a microflow to make it editable. But you can specify editability condition on the element itself on the page.
Mendix provides three options regarding the editability.
Update
Although, a microflow doesn’t allow accessing UI properties, you can still change the properties of UI elements on the go using a nanoflow which uses JavaScript (Client side Language).
Steps:
var d=document.getElementsByClassName("Editablitytoggle");
d[0].getElementsByTagName("input")[0].setAttribute("readonly","readonly");
Hi,
You can use visibility condition. Add two containers, in first one you can add non editable and in 2nd you can add editable fields.
You can add one attribute to play with visibility condition. Just change the attribute value with the help of any button.
Hope this will help.
In the edit button, you have placed in your widget, when you double click there will be an Onclick section where you can select a microflow/nanoflow and make your boolean true or false .
Hope it helps