Stylizing Service Request Buttons
You can also stylize the Service Request button using custom HTML.
To customize the button:
Click the Edit button at the top-right corner of the Service Request button. The Edit Service Request page displays.
Toggle the Custom Html switch on. A text field displays for entering the custom HTML code.
Enter the following template HTML code:
<div style="background-color: #043A4F;height: 12px;width:200px;border-radius: 3px;border: 2px solid #043A4F;color: white;font-size: 14px;font-weight: bold;padding: 25px">
<span class="v-icon FontAwesome" style="color: #93D7FA"></span>
<span>SERVICE REQUEST NAME</span>
</div>Modify the code, as needed. Below are a few recommendations for updating the icon and text on the button.
To modify the font icon that appears on the button:
Change the color of the font icon by entering a new HEX color code in the template code, as shown below:
<span class="v-icon FontAwesome" style="color: #93D7FA"></span>
Change the appearance of the font icon by entering or pasting a new Unicode in the template code, as shown below:
<span class="v-icon FontAwesome" style="color: #93D7FA"></span>
To find the desired Unicode:
- Go to: https://fontawesome.com/v4.7.0/icons/.
- Select the icon that you wish to include on the button.
- Copy the Unicode from the icon's details page.
Remove the font icon from the button by commenting out the following line in the template code, as demonstrated below:
<!--<span class="v-icon FontAwesome" style="color: #93D7FA"></span>-->
To modify the text that appears on the button:
Change the <span>
text in the template code to match the actual Service Request Name, as shown below:
<span>SERVICE REQUEST NAME</span>
If you submit a Service Request using a URL, the URL uses the Service Request Name and not the text displayed by the custom HTML. To avoid confusion, it is recommended that you copy the Service Request Name into the custom HTML <span>
text area. This way, the actual Service Request Name and the text displayed on the button will match.
The result using the template code: