This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How to change appearance of Button on the form.

jagdish - Tuesday, August 14, 2012 1:21 AM:

I have created a new button on a form but its appearance is just square with fine edges . but form has already

button with smooth curved edges and nice  appearance. i tried but i was unable to change new button's appearance .................

please help me for this.........................???



vasant - Tuesday, August 14, 2012 9:47 AM:

Hi Jagdish,

You can use HTML Field type rather than Button in Form.

Create a field of type HTML
and HTML Code is:
<button style="background-color:lightgreen">Save</button>

You can put event on this button and format it as per your design view using CSS too.

You can also use <input type='button'/>.

Hope it helps,

Thanks & Regards,
Vasant Padhiyar



jagdish - Thursday, August 16, 2012 9:26 AM:

Thanks Vasant..............!!

thank you very much .........it works........fine.......!!!



jagdish - Thursday, September 6, 2012 1:05 AM:

Hello Vasant I have created Button as per your given code it worked(<input type='button'/>.)
But its not working as a button means i have added method on Onclick event but its not giving me output
Can you help me.....please.



Harsha - Thursday, September 6, 2012 5:42 AM:

Hi Jagdish,

    If you are creating the button  using HTML code,then no need to create a method separately and add it on OnClick event.

You can just include your function into the HTML code which you using to create your button.

<HTML><script>

function () {

//your code //conditions to the button } </script>

<body><input type="button"   name="name"  onClick="function()" value="value"/></body>

</HTML>

I hope that I understood your question.

 Thank You / Harsha

 



jagdish - Thursday, September 6, 2012 9:26 AM:

Thanks Harsha......

i think i need to explain my question once again.

i have a button with square shape sharp edges, and on Onclick event of this button i have one javascript 

method which does some task like open word doc file. now when i click on this button,  word doc at some location gets opened which is desired.....

but the problem is Button look. I have some old buttons on same form with smooth edges and nice looking .

i want to look my new button as like old one.............when i tried html type to create old look .it works for button look. I get desire look.....But now problem is that 

the method which is on Onclick event of button this does not work..............!!!

so please if you have any suggestion you can tell me...........??