cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
jocelynm
Nintex Newbie

Changing Formatting of Text on Nintex Forms via JavaScript and CSS

Jump to solution

Hello,

I am working on changing the formatting text of the Attachment control via JavaScript and CSS. By adding the following text to the Custom JavaScript field in the Nintex Form, this works with New Items. (The control is called "Attachments.")

NWF$(document).ready(function() {

NWF$('Attachments td.ms-descriptiontext').css('color', 'red').css('font-size', '18px');

});

This also works:

NWF$('Attachments .ms-addnew').click(function() {
  NWF$('Attachments td.ms-descriptiontext').css('color', 'red').css('font-size', '18px');
});

Both result in the following:

Bold text

This is perfect, however, this only works when I click New Item. If I edit an item, the formatting does not go through. Would anyone be able to offer advice as to why this works with New Item, but not Edit Item?

Thank you,

Jocelyn

0 Kudos
Reply
4 Replies
jocelynm
Nintex Newbie

Re: Changing Formatting of Text on Nintex Forms via JavaScript and CSS

Jump to solution

So of course I figure it out as soon as I post!

I put this in the Custom CSS and removed the Custom JavaScript code and now it works in both New and Edit Modes:

/* Overwrite CSS and turn text Red */
.ms-descriptiontext{
color: red;
font-family:tahoma;
font-size:18pt;
text-align:left;
}

Reply
obaidaaqel86
Nintex Newbie

Re: Changing Formatting of Text on Nintex Forms via JavaScript and CSS

Jump to solution

Hi all,

Please Question if you have Nintex form and I want to if any user change any data ( text color for this data changed must change).

0 Kudos
Reply
tanunintex09
Nintex Newbie

Re: Changing Formatting of Text on Nintex Forms via JavaScript and CSS

Jump to solution

how can i override this "maximum file size is 250 mb ?

0 Kudos
Reply
rd
Nintex Newbie

Re: Changing Formatting of Text on Nintex Forms via JavaScript and CSS

Jump to solution

I added this code to the form setting under the Custom CSS tab, however, the attachment font color still remains the same - Black. What am I doing wrong here?

0 Kudos
Reply