Anonymous_User Absent Member.
Absent Member.
168 views

Re: How to enable/disable field in Designer 4.02?


Any News on this Bug? Still seems in Designer 4.5
Any Workarounds?


hello amigo;10009 Wrote:
> Hi! I try to enable/disable TrueFalseCheckbox field. I need it to be
> disabled on onload event and then I want to enable it on the custom
> event. So, I have tried two approaches. The first is I set an Editable
> property of the field to false and then I tried to enable field by
> field.enable(). It doesn't work. The field is still disables. The
> second
> approach is I set an Editable property of the field to true. Then on
> onload event I set it to disable: field.disable(). But field is still
> enabled.
> It seems like the field listen to Editable property only, but not
> listen to field.enable(), field.disable().
> Any suggestions?
> Thanks!!!
>
>
> --
> hello_amigo
> ------------------------------------------------------------------------
> hello_amigo's Profile:
> http://forums.novell.com/member.php?userid=101672
> View this thread: http://forums.novell.com/showthread.php?t=459013



--
ukrause
------------------------------------------------------------------------
ukrause's Profile: https://forums.netiq.com/member.php?userid=3280
View this thread: https://forums.netiq.com/showthread.php?t=2338

Labels (1)
0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: How to enable/disable field in Designer 4.02?


Hi,

I do field.hide() and field.show() instead based on whatever logic is
best in the current document.
You could even have two fields, one that is editable and one that is not
editable and based on the logic show the one that is supposed to be
shown.


--
joakim_ganse
------------------------------------------------------------------------
joakim_ganse's Profile: https://forums.netiq.com/member.php?userid=159
View this thread: https://forums.netiq.com/showthread.php?t=2338

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.