cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Larsen" <>
Subject CForms hide button on load
Date Fri, 20 Jan 2006 18:39:41 GMT

I'm stuck on something simple again.

I want to hide a button widget if the value of a boolean field is false on
form load. I'm trying using <fd:on-create>:

        var widgetStateInvisible =
        var thisForm = event.source.form;

        if (!thisForm .lookupWidget("okToSync").getValue) {
            thisForm.lookupWidget("submitButton").state =

It appears that I'm able to get a reference to the "okToSync" wigdet (it's
not null) but the value is null, I'm assuming because it is not loaded yet.

Thanks for any help,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message