How to hide a button on a form

 3 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Garry Ferwerda
Basic Member Send Private Message
Posts: 20
Basic Member
I have added a button to AC10.1 on the levels tab in the detail area for levels.   I only need the button on the second level address for certain activity groups.   Since the button was added to the detail form it appears on every row.   I have disabled the functionality of the button on the rows where it does not apply, but I would really like to have the button hidden or have the text removed from the button on the rows where it is not working.    Is there a way to hide/unhide a button on a form? Thanks,
Jason Beard
Veteran Member Send Private Message
Posts: 124
Veteran Member
Garry, If you are using design studio you can. From a COBOL level I'm not sure. For Design studio, within your script you need to get a reference to the object and then set it's display to none. lawForm.getFormElement("text20").style.display="none";
Jason Beard
617-548-5568
jabeard3@gmail.com
Garry Ferwerda
Basic Member Send Private Message
Posts: 20
Basic Member
I keep getting an error on page error when I try that. Here is what I have tried: lawForm.getFormElement("push8",0).style.display="none"; or var btnElem = lawForm.getFormElement("push8",0); btnElem.style.display = "none";
John Henley
Send Private Message
Posts: 3351
lawForm.getFormElement("push8",0).style.visibility="hidden"
Thanks for using the LawsonGuru.com forums!
John