Allen Posted April 6, 2022 Share Posted April 6, 2022 Hi; Could someone help me understand the differences between the use of Enabled or ReadOnly in forms as they appear to have the same effect? From a UniGui perspective which is the preferred or correct way to go. In my use case based on a users permissions fields my be editable or presented for informational purposes, so in my code I can toggle either property at the appropriate time. My question is am I failing to understand the difference between the 2 properties? Thanks for any insights into this. -Allen Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 6, 2022 Share Posted April 6, 2022 42 minutes ago, Allen said: My question is am I failing to understand the difference between the 2 properties? Hello, In general, here are the differences: "Readonly element is just not editable, but gets sent when the according form submits. Readonly elements can be focused (and getting focused when "tabbing" through a form). Disabled element isn't editable and isn't sent on submit. Disabled elements can't be focused (and getting focused when "tabbing" through a form)." Quote Link to comment Share on other sites More sharing options...
Allen Posted April 6, 2022 Author Share Posted April 6, 2022 Thank you Quote Link to comment Share on other sites More sharing options...
Allen Posted April 7, 2022 Author Share Posted April 7, 2022 Another quick note on this if anyone else runs into it. When the element is disabled, any formatting that is derived from a VTypes is not applied. on this basis I would prefer to use readOnlu. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.