{"id":6389,"date":"2017-09-12T18:28:03","date_gmt":"2017-09-12T12:58:03","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=6389"},"modified":"2017-09-12T18:28:03","modified_gmt":"2017-09-12T12:58:03","slug":"apply-custom-css-to-voc-survey-in-dynamics-365","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2017\/09\/apply-custom-css-to-voc-survey-in-dynamics-365\/","title":{"rendered":"Apply Custom CSS to VOC Survey in Dynamics 365"},"content":{"rendered":"<h4 style=\"text-align: justify;\"><strong>Introduction:<\/strong><\/h4>\n<p style=\"text-align: justify;\">In one of our previous blogs, we explained <a href=\"https:\/\/www.inogic.com\/blog\/2016\/07\/voice-of-customer-for-dynamics-crm-2016\/\" target=\"_blank\" rel=\"noopener noreferrer\">how to set up the VOC in Dynamics 365 environment<\/a>.<\/p>\n<p style=\"text-align: justify;\">In this blog, we will explain <strong><em>how to<\/em><\/strong><strong><em> add custom CSS to the VOC Survey.<\/em><\/strong><\/p>\n<p style=\"text-align: justify;\">Recently, we developed a VOC survey to get the customer feedback in Dynamics CRM as seen in the screenshot below;<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Apply-Custom-CSS-to-VOC-Survey-in-Dynamics-3651.png\"><img decoding=\"async\" class=\"alignnone  wp-image-6381\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Apply-Custom-CSS-to-VOC-Survey-in-Dynamics-3651.png\" alt=\"Apply Custom CSS to VOC Survey in Dynamics 365\" width=\"788\" height=\"285\" \/><\/a>The design shown in the above screenshot is the default OOB design for the survey.<\/p>\n<p style=\"text-align: justify;\">If we want to customize the header background color or change the header text look (e.g., Bold, Italic), we can either use the VOC Themes OOB options or the VOC Themes custom CSS option. We will discuss both the options in detail;<\/p>\n<h4 style=\"padding-left: 30px; text-align: justify;\"><strong>A. Using the VOC Themes OOB options:<\/strong><\/h4>\n<p style=\"padding-left: 30px; text-align: justify;\">You can design your custom theme by navigating to <strong><em>Voice of Customer &gt; Themes<\/em><\/strong> and then clicking on the <strong><em>\u2018New\u2019<\/em><\/strong> button to create your custom theme as seen in the screenshot below;<\/p>\n<p style=\"padding-left: 30px; text-align: center;\"><img decoding=\"async\" class=\"alignnone  wp-image-6382\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Apply-Custom-CSS-to-VOC-Survey-in-Dynamics-3652.png\" alt=\"Apply Custom CSS to VOC Survey in Dynamics 365\" width=\"790\" height=\"276\" \/><\/p>\n<p style=\"padding-left: 30px;\">VOC provides the options to change the background colors of the <strong><em>Header, Section, Navigation Bar<\/em><\/strong>, etc. as seen in the screenshot below;<\/p>\n<p style=\"padding-left: 30px; text-align: center;\"><img decoding=\"async\" class=\"alignnone  wp-image-6383\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Apply-Custom-CSS-to-VOC-Survey-in-Dynamics-3653.png\" alt=\"Apply Custom CSS to VOC Survey in Dynamics 365\" width=\"706\" height=\"453\" \/><\/p>\n<h4 style=\"text-align: justify; padding-left: 30px;\"><strong>B. Using the VOC Themes custom CSS option:<\/strong><\/h4>\n<p style=\"text-align: justify; padding-left: 30px;\">If you want to add some additional CSS to the survey, then you can achieve this by adding your custom CSS in the survey. This CSS will be applied to the survey at runtime.<\/p>\n<p style=\"text-align: justify; padding-left: 30px;\"><strong>Follow the steps mentioned below to add the CSS to the survey:<\/strong><\/p>\n<p style=\"padding-left: 60px;\"><strong>1<\/strong>. Navigate to <strong><em>Voice of Customer &gt; Theme <\/em><\/strong>and create a new theme for your survey.<\/p>\n<p style=\"padding-left: 60px; text-align: center;\">\n<p style=\"text-align: justify; padding-left: 60px;\"><strong>2<\/strong>. Now you need to get the div Id on which you want to apply CSS. To get the respective <strong><em>&lt;Div CSS Class id&gt;<\/em><\/strong> first you need to Run\/Preview the survey. Then press <strong><em>F12<\/em><\/strong> and select the element on which you want to apply the custom CSS. In our case our header div CSS class name is <strong>div.s_b <\/strong>as shown in the screenshot below;<\/p>\n<p style=\"padding-left: 60px; text-align: center;\"><img decoding=\"async\" class=\"alignnone  wp-image-6385\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Apply-Custom-CSS-to-VOC-Survey-in-Dynamics-3655.png\" alt=\"Apply Custom CSS to VOC Survey in Dynamics 365\" width=\"714\" height=\"239\" \/><\/p>\n<p style=\"text-align: justify; padding-left: 60px;\"><strong>3<\/strong>. Now go to custom theme section and add your CSS in <strong><em>Runtime CSS<\/em> <\/strong>text box<strong>.<\/strong> We have added the below CSS code to make the header text <strong><em>Bold<\/em><\/strong> and to change the background color of the header to <em><strong>Purple<\/strong><\/em>, as seen in the screenshot below;<\/p>\n<p style=\"padding-left: 60px; text-align: center;\"><img decoding=\"async\" class=\"alignnone wp-image-6386 \" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Apply-Custom-CSS-to-VOC-Survey-in-Dynamics-3656.png\" alt=\"Apply Custom CSS to VOC Survey in Dynamics 365\" width=\"711\" height=\"194\" \/><\/p>\n<p style=\"padding-left: 60px;\"><strong>4<\/strong>. Once you save the record, go to the Survey Design and set the Default Theme to the theme that we created and then publish the changes as seen in the screenshot below;<\/p>\n<p style=\"padding-left: 60px; text-align: center;\"><img decoding=\"async\" class=\"alignnone wp-image-6387 \" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Apply-Custom-CSS-to-VOC-Survey-in-Dynamics-3657.png\" alt=\"Apply Custom CSS to VOC Survey in Dynamics 365\" width=\"675\" height=\"480\" \/><\/p>\n<p style=\"text-align: justify; padding-left: 60px;\"><strong>5<\/strong>. Now click on the <strong><em>Preview.<\/em><\/strong> The Header Color is now Purple, and the Header Text is Bold as seen in the screenshot below;<\/p>\n<p style=\"padding-left: 60px; text-align: center;\"><img decoding=\"async\" class=\"alignnone  wp-image-6388\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Apply-Custom-CSS-to-VOC-Survey-in-Dynamics-3658.png\" alt=\"Apply Custom CSS to VOC Survey in Dynamics 365\" width=\"712\" height=\"345\" \/><\/p>\n<p>Hope this helps!<\/p>\n<p><a href=\"http:\/\/www.inogic.com\/product\/productivity-pack\/click-2-clone-microsoft-dynamics-crm-records\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"alignnone  wp-image-6193\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Click2Clone-One-Click-Productivity-App-to-Copy_clone-Dynamics-365_CRM-Records.png\" alt=\"Click2Clone One Click Productivity App to Copy_clone Dynamics 365_CRM Records\" width=\"812\" height=\"203\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: In one of our previous blogs, we explained how to set up the VOC in Dynamics 365 environment. In this blog, we will explain how to add custom CSS to the VOC Survey. Recently, we developed a VOC survey to get the customer feedback in Dynamics CRM as seen in the screenshot below; The\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2017\/09\/apply-custom-css-to-voc-survey-in-dynamics-365\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":6380,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,19,64],"tags":[444,1799],"class_list":["post-6389","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-crm","category-voc","tag-custom-css","tag-voc-survey"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/6389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=6389"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/6389\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/6380"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=6389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=6389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=6389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}