Insert text containing hyperlink when a certain check box is selected
I'm creating a form where someone indicates which professional development resources they are going to use to build skills in different areas by selecting the fillable checkboxes next to the resources. When they select the checkbox, the relevant resource is pulled into a text field in their Development Action Plan at the end of the form using the code below (found in a previous post) as 'Calculation' script of the text field:
if(this.getField("Checkbox1").valueAsString != "Off")
event.value = "Text for checkbox 1 goes here";
else if(this.getField("Checkbox2").valueAsString != "Off")
event.value = "Text for checkbox 2 goes here";
else
event.value = "";I've changed the checkbox names in script to the names of my checkboxes and changed the event.value text to the resources I want to show - and all of this is working.
Here's where I need help: Some of the resources I want to pull into the text field when a box is checked are text that include hyperlinks, which don't pull through using the code above. Is there a way to modify the code I'm using so that the text being pulled into the text field will include a hyperlink? Or, if not, a clickable URL?