Adding CSS class to g:ui_choicelist or g:ui_date

Nisar2
Mega Guru

Hi experts,

I'm currently using the following code in a UI page:

<g:ui_choicelist class="form-control" name='gh_hold_reason' table='incident' field='u_on_hold_reason' />

But that is rendering the select tag as vanilla HTML and looks ugly even though I've used the "class" attribute. Is there a way I can apply that CSS class to the select tag?

1 REPLY 1

Nisar2
Mega Guru

So far, this is the alternative that I've been using:

gel('gh_hold_reason').setAttribute('class', 'form-control');

This works, but I was hoping there was a standard/OTB feature for this.