Suitelet CSS Styling

Hello all,

 

I am currently working on a Suitelet which consists of a form with different types of elements. As Suitescript does not allow to manipulate DOM through JS, I was hoping if anyone have a solution to style that form using CSS.  It would be great if anyone suggests any method not involving third party packages.

 

Thanks.

Rookie Asked on January 15, 2020 in Other.
Add Comment
1 Answer(s)
Best answer

You can manipulate the DOM with jQuery.  You can even load your suitelet in the UI and play with the jQuery in the chrome console without having to upload script and refresh, etc.

Intermediate Answered on January 15, 2020.

Hello,

 

When I try to execute the jQuery, it is not working. Is it because suitelet is a server side script instead of client script?

 

Thanks

on January 15, 2020.

Hello,

 

Found the answer. Need to write a client script and attach in Suitelet using form.clientScriptModulePath (SuiteScript 2.0) and use JQuery from client script file.

 

Thanks

on January 15, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor