AnsweredAssumed Answered

Changing Formatting of Text on Nintex Forms via JavaScript and CSS

Question asked by jocelynm on Jan 18, 2017
Latest reply on Nov 22, 2017 by tanunintex09

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

Outcomes