Question

Check Menu Item

Hi, 

 

I added a Check Menu Item on the Actions menu to one of my sections and it works fine, but I have not been able to set the Checked default value base of an attribute set on the init function.

 

This is what I have:

actionMenuItems.addItem(this.getButtonMenuItem({

                    "Type": "Terrasoft.controls.CheckMenuItem",

                    "Caption": { bindTo: "Resources.Strings.OpenImagesAutomaticallyFromInitialEntryCaption" },

                    "Click": { bindTo: "setOpenImagesAutomaticallyFromInitialEntry" },

                    "Checked": { bindTo: "OpenImagesAutomaticallyFromInitialEntrySetting" }

                }));

but when I go to the menu item, the menu is always unchecked regardless of the value of the boolean attribute OpenImagesAutomaticallyFromInitialEntrySetting. 

 

Any help on how to accomplish that would be greatly appreciated.

 

Thanks,

Jose

 

Like 0

Like

2 comments

Hello Jose, 

 

Please check my last answer on this post: 

 

https://community.creatio.com/questions/how-make-radio-button-mandatory…

 

Here I explained how to use attribute "Checked" correctly. Although there is a post regarding radio button, however the required logic for "Checked" attribute will be the same. 

 

Best Regards, 

 

Bogdan L.

Bogdan Lesyk,

Thanks Bogdan. I will try that.

Show all comments