I have created custom Right Click context menu with 2 options (Available Yes/No). I want to be able to be able to display a check mark (tick) next to the option that was selected.
Eg: By default if the user has never chosen anything then Yes is checked and if the user clicks on No...now No is checked and Yes is no longer checked. I will have to save the information into the document so that when the selection changes the correct value is ticked.
Can you please let me know how to do this?
Thanks in advance! Your help is very much appreciated.
Could you please share your coding?
It is a simple 2 liner.
|var myAddYes = app.menus.item("$ID/RtMouseLayout").menuItems.add(app.scriptMenuActions.item("Yes"));|
|var myAddNo = app.menus.item("$ID/RtMouseLayout").menuItems.add(app.scriptMenuActions.item("No"));|
All I want to do is to have a check mark/selected for Yes by default and when the user clicks No I untick Yes and tick No.
Ok. After a lot of tries I got it to work.
All I had to do was add .checked=true;
That took care of it.