Looking to update or edit your code? Use a free online tool such as https://jsfiddle.net/ which lets you see the results of changes in your code.
Widgets for Custom Code
Widget Pages give the most flexibility for custom code. You can choose to have only the code on a page by having only one widget on the page, yet retain the option of adding more content at some future date by adding another widget(s). Learn more about adding a Widget Page.
Within Widget Pages, custom code can be added using either of two widget types:
- Message Box widget - the text editor in this widget allows you to access the code - just click Source and you're working in the code; click Source again to return to the user view.
- Custom Code widget - code can be directly entered into this widget; this widget allows for more types of code to be used.
Pages for Custom Code
If all you want to include on a page is custom code and you don't anticipate needing to add other information on the page, choose to add a Content Page. Learn more about adding a Content Page.
Once you've added the page, the text editor on the page allows you to access the code - just click Source and you're working in the code. Click Source again to return to the user view.
When including custom code onto your site we recommend first testing the code on a separate page within the intranet, so if the code affects functionality it won't break a page you've been working on previously.
Our Support Team provides unlimited product support for Intranet Connections. Since custom code is by definition custom and not part of our software, we're unable to provide support for it. Any custom code is used at an organization's own risk.
Troubleshooting Custom Code
Custom code can be difficult to troubleshoot as it is adding additional functionality to a page. It should be noted that we are unable to provide support for the code that you have written, below are some steps that can be used to assist you in troubleshooting custom code errors:
- Test the same code on a new page with no other widgets.
- Check the browsers console for errors (the console can generally be found in the browsers developer tools).
- Check the code that is shown in the WYSIWYG editor or the Custom Code widget and compare to the code entered originally to see if there are differences.
- Run your code through an online validator (for HTML make sure your code is HTML 5 compliant).
- Test the code in an online environment such as https://jsfiddle.net/.