Toggle navigation
Home
▼ Details
Products and pricing
Chart gallery
User stories
Text analytics
CDC NAMCS Library
Blog
Tutorials
Contact
Sign in
Post Editor
← All help posts
View post
Save
<img src="/uploads%2Fupload%2Fimage%2F5200%2Fdirect%2F1612203338165-1612203338165.png" alt="Project intro page showing 'Example Pharma Survey' with a decorative medical-themed image featuring hexagonal icons. The page displays summary text explaining this is a survey about health care professionals' treatment patterns and includes 'Sample: 100 physicians'." style="box-sizing: border-box; border: 0px; max-width: calc(100% - 10px); cursor: pointer; padding: 0px 1px; color: rgb(56, 76, 96); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; width: 315px;" class="fr-fic fr-dib"> An intro element at the beginning of a project has visual appeal, and informs the user about the study. <img src="/uploads%2Fupload%2Fimage%2F5200%2Fdirect%2F1614007829141-1614007829141.png" alt="/uploads%2Fupload%2Fimage%2F5200%2Fdirect%2F1611852166207-1611852166207.png" width="468" style="width: 769px; height: 438.724px;" class="fr-fic fr-dii"> 1\. To add an intro element, go to the "[More properties...](/edit-access/element-properties)" dialog for the group (e.g. Screener). Reference a new item "Intro" as the first item in the "children" attribute. <img src="/uploads%2Fupload%2Fimage%2F5200%2Fdirect%2F1611852731181-1611852731181.png" alt="Element properties dialog box titled 'Element properties: Screener' displaying configuration settings. Key fields include 'key: Screener', 'displayKey: Screener', 'headline: text', 'title: Survey eligibility', 'type: empty' dropdown, and 'children: Intro,S1,S2,S6v1,S6v2,S8v2' showing the child elements of this section." style="width: 283px;" class="fr-fic fr-dib"> The element will initially appear empty: <img src="/uploads%2Fupload%2Fimage%2F5200%2Fdirect%2F1611853060669-1611853060669.png" alt="Simple chart display for the Intro element showing a single row with '[NA]' label, displaying 100% with a blue horizontal bar and N value of 100." style="width: 310px;" class="fr-fic fr-dib"> 2\. To add images and text, open the HTML content editor by selecting the element and using the shortcut SHIFT + x + c . <img src="/uploads/upload/image/5200/direct/1647464116778-1647464116778.png" alt="Element properties dialog titled 'Element properties: Intro' displaying a mostly empty text editor interface with Cancel and Ok buttons in the header and a single line numbered '1' with a cursor." style="width: 415px;" class="fr-fic fr-dib"> 3\. Use HTML tags to add different [](https://www.w3schools.com/html/html_headings.asp)[headings](https://www.w3schools.com/html/html_headings.asp), [](https://www.w3schools.com/html/html_images.asp)[images](https://www.w3schools.com/html/html_images.asp) and [](https://www.w3schools.com/html/html_paragraphs.asp)[paragraphs](https://www.w3schools.com/html/html_paragraphs.asp). <img src="/uploads/upload/image/5200/direct/1647463877127-1647463877127.png" alt="Element properties dialog for Intro element displaying HTML markup in a text editor. The code shows an h2 heading 'Example Pharma Survey', an img tag referencing 'splash-image.jpg', followed by paragraph tags containing summary text describing the survey of health care professionals and sample information of 100 physicians." style="width: 425px;" class="fr-fic fr-dib"> Expand the panel to copy the above code. ## Intro element HTML code ``` <h2>Example Pharma Survey</h2> <img src="/v3/datasets/5a5fa2dd136a3a0004b461d0/direct/splash-image.jpg"> <p><b>Summary: </b>This is an example survey of health care professionals about their current treatment patterns and interest in a new product. </p> <p>The survey demonstrates a wide array of question types and illustrates some complexities common to many surveys. </p> <p><b>Sample:</b> 100 physicians </p> ``` [Delete](#) 4\. Open the [JSON editor](http://help.protobi.com/editaccess/edit-json#%0AJSON%20editor-0) and edit or add these attributes: 1. Set "type" to "empty" (line 16 below).The intro element doesn't contain data, setting type to empty will remove the frequency bar for \[NA\]. 2. Set "chartType" to "" (line 3). Or you can delete that attribute altogether. 3. Add a "css" attribute (line 5) to format the image. You can do a variety of things, but here we just adjust the width of the image that is referenced in the content attribute. See [CSS Styling images](https://www.w3schools.com/css/css3_images.asp) for more examples. Note the "content" attribute contains the HTML code you add in the HTML content editor (SHIFT + x + c). <img src="/uploads/upload/image/5200/direct/1664308432303-1664308432303.png" alt="Element properties dialog displaying JSON configuration for the Intro element. The JSON shows properties including 'key: Intro', 'chartType: empty string', 'color: #82C7DA', CSS settings with img width 100%, 'displayKey: null', 'type: empty', chartOptions with width 400 and height 480, and a content field containing HTML markup for the Example Pharma Survey with h2 heading, image tag, and paragraph descriptions." style="width: 390px;" class="fr-fic fr-dib"> End result: <img src="/uploads%2Fupload%2Fimage%2F5200%2Fdirect%2F1611855661446-1611855661446.png" alt="Final rendered intro page displaying the 'Example Pharma Survey' title in blue text, followed by a medical-themed banner image with hexagonal icons and stethoscope imagery. Below the image is a Summary section explaining the survey's purpose about health care professionals' treatment patterns, followed by a description of question types, and ending with 'Sample: 100 physicians'." style="width: 315px;" class="fr-fic fr-dib"> Expand the panel below to copy the entire JSON for the above element. ## JSON code ```json { "roundby": null, "key": "Intro", "type": "empty", "title": "", "displayKey": null, "field": "", "color": "", "maxValue": null, "chartOptions": { "width": 393, "height": 453 }, "width": "400", "sortby": null, "chartType": "BasicElement", "content": "<h2><%=dataset.name%></h2><img src=\"https://app.protobi.com/v3/datasets/5a5fa2dd136a3a0004b461d0/direct/splash-image.jpg\"><p><b>Summary: </b>This is an example survey of health care professionals about their current treatment patterns and interest in a new product. </p><p>The survey demonstrates a wide array of question types and illustrates some complexities common to many surveys.</p><p><b>Sample:</b> 100 physicians</p>", "css": { "img": { "width": "100%" } } } ```
Publishing
Date
Status
Published
Draft
Slug
edit
Content
Thumbnail
Categories
Manage
New to Protobi?
Charts
Making Changes
Intermediate topics for editors
Frequently Asked Questions
SERMO Topics
Tutorial Pages
Internal Docs
Data Processing
Videos
Obsolete
GSG Admin
SERMO Admin
GSG Topics
How to...
Basics for viewers
Basics for editors
For project admins
Advanced topics
Assessments
Articles (in-progress)
New and updated articles
Process data in Protobi
superseded
Text open-end questions
Troubleshooting
Tracking studies
Organizing the view
API References
Tools
AI Database
Checking AI...
Convert to MD
Danger zone
Delete