Jump to content

Dropdown customization

Recommended Posts

Hi there,

I would appreciate if someone could help me modifying styles of a dropdown on inline insert functionality of Tabular Report Datapage.

I have a Cascading dropdown "EMAIL" where I would like to assign a special font and add a bottom border for each option.

The challenge I am facing is that I have other dropdowns on this Datapage and I would like them to preserve default styling.




Link to comment
Share on other sites

You should Add Event Listener on that particular Input and apply style to all child Nodes

<script type="text/javascript">
    document.addEventListener('DataPageReady', function(event) {
        document.querySelectorAll("[name~='InlineAddemail']")[0].addEventListener('click', function(){
                document.getElementsByClassName('DropBox')[0].style.setProperty('width', '350px');
                elem.style.setProperty('border-bottom', '1px solid black');
                elem.style.fontFamily = 'Lucida Console';

InlineAddemail is your Input name attribute. You can find it via chrome developer console.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...