# 

The most interesting feature in Scriptcase, is the manipulation of the display of buttons in applications, with the macro **sc\_btn\_display ("nomebotao", "on / off"):**

To see all the macro documentation [click here](http://www.scriptcase.com.br/docs/pt_br/macros-scriptcase/macros-scriptcase#sc_btn_display).

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=kor8e1087a0278dea43b4a113a0fd88b60142)

We can use this macro to validate users' permissions to use a button, for example:  
  
We have a form with the New, Update and Delete buttons, and the User and Visitor groups.e.

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=kor8e0c98fecc446a454bb76828ca61a9e42c)

The User will not be allowed to Delete a record and the Visitor will only be able to view the form.  
We put the following code in OnLoad:

if([grupo] == 'usuario'){  
  
    sc\_btn\_display('delete','off');  
  
}else if([grupo]=='visitante'){  
    sc\_btn\_display('delete','off');  
    sc\_btn\_display('update','off');  
    sc\_btn\_display('new','off');  
  
}

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=kor8e9ce9bc4448634c42bc12194c59e5be32)

See in execution:  
  
User:![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=kor8e78e3279df59b433dbb34295b2bac9f5a)

Guest:

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=kor8e40f19e6695c645d3a52b98c4bbf3538e)