- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 04:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 04:34 AM
Hi Sumitha,
Firstly create a variable using getControl() method using g_form object
after specify the style using js like you do normally do while performing DOM manipulations.
I have given the code below.
var a = g_form.getControl('number');
a.style = "background-color:blue;border-radius:50px;height:100px;";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 04:34 AM
Hi Sumitha,
Firstly create a variable using getControl() method using g_form object
after specify the style using js like you do normally do while performing DOM manipulations.
I have given the code below.
var a = g_form.getControl('number');
a.style = "background-color:blue;border-radius:50px;height:100px;";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 04:47 AM
Hi,
Can you explain your detailed business requirement?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader