Hide Cancel Button from UI page

sajan0192
Giga Expert

To create a Project there is a UI page named create_project

Used <g:dialog_buttons_ok_cancel ok="return makeChanges()" ok_type="button" cancel_type="button" /> this macro for showing OK and CANCEL button

Now I want to hide CANCEL button only...

Where should I hide it on Macro or on UI page and how to hide it??

1 ACCEPTED SOLUTION

Gurpreet07
Mega Sage

Hi Sajan,



Use UI Developer tool like firebug to get id of cancel button and then use css in your ui macro to hide this button like below .


<style>


#<id>{


display : none ;


}


</style>


View solution in original post

7 REPLIES 7

Gurpreet07
Mega Sage

Hi Sajan,



Use UI Developer tool like firebug to get id of cancel button and then use css in your ui macro to hide this button like below .


<style>


#<id>{


display : none ;


}


</style>


Hi Gurpeet,



I tried with firebug....not able to find id of CANCEL button...



Can you please tell where I will find the id of CANCEL button



I copied the id from macro id="${jvar_cancel_id}"...dont know whether it is correct or not.



Thanks,


Sajan


DONE...it worked...



Thank you...


bernyalvarado
Mega Sage

Hi Sajan,



If you only want the OK then you can use the following:



<g:dialog_button_ok ok="return makeChanges()" ok_type="button" />



Thanks,
Berny