--- title: "HTML code of dox42 pop-up web resources" slug: "html-code-of-dox42-pop-up-web-resources" tags: ["d365CECRM", "reference", "CE V5.0"] updated: 2025-03-03T15:41:37Z published: 2025-06-26T09:23:23Z canonical: "help.dox42.com/html-code-of-dox42-pop-up-web-resources" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.dox42.com/llms.txt > Use this file to discover all available pages before exploring further. # HTML code of dox42 pop-up web resources # HTML code of dox42 pop-up web resources This topic explains different sections in the HTML code to give you the information required to customize the pop-up to your needs. ## The web resource form In the most basic sense, the pop-up web resource is an HTML form that is submitted when you press **Generate** and delivers form data to the Javascript code within the dox42 CRM solution, which in turn converts it to a JSON object that is sent via the request body. The main form for input parameters and other options may contain any kind of form element, for example textboxes, checkboxes, selects, radio buttons etc. The form data is handled in the **clientlib.js** file. ```xml
   
       
                   
       
           
                                                                   
       
   
   
       
                   
       
           
                           
       
   
   
       
                   
       
                   
   
   
       
                                           
       
                                           
   
   
       
                             
   
``` ## class “exclude” Some form elements have the HTML class exclude. With this class you can differentiate which form data elements should be saved to the input parameter JSON object and which should be saved to the session storage where they can be retrieved later for another purpose. > [!WARNING] > Important > > - You must retrieve the value of these elements yourself; they will not work automatically. > - Choosing this approach, it is recommended that you define global variables at the start of the file to avoid any errors due to typos. For the default pop-up it looks like below: ```javascript //Defined at the start of the file or before method let dox42TemplateValue = "dox42Template"; let dox42InputParamsValue = "dox42InputParams"; let dox42CRMEmailValue = "dox42CRMEmail"; //Implementation could look like this var dox42Template = sessionStorage.getItem(dox42TemplateValue); var dox42CustomData = sessionStorage.getItem(dox42InputParamsValue); //Example implementation of a custom excluded element “dox42CRMEmail var generateCRMEmail = sessionStorage.getItem(dox42CRMEmailValue) != null ?   sessionStorage.getItem(dox42CRMEmailValue) : false; ``` ## Form elements with hidden fields We recommend to handle some form elements with hidden fields with the same name, especially checkboxes and radio buttons, since these elements are “not valid form data” if they are not checked and will therefore not be saved as form data, which could lead to problems in the template. ```xml
           
``` The value of the checkbox overwrites the value of the hidden input if it returns a value (i. e. `on`).