i have a series of radio buttons on the first page of a form. Based on the series selection, i want to populate a text field on page 7 of the form. I am using this code to successfully populate the field:
if (this.rawValue == "1"){
this.resolveNode("form1.Requisition_Page7.#subform[0].Period").rawValue = "July 1 - September 30"
}
This code is in Javascript in the change event of the radio button list. What i am asking is there a way to add the year to the text box output (which will vary). The user selects the year from a dropdown list, also located on page 1.
I know how to use concat and make this work in FormCalc, but do not know how to do this in Javascript. I want the field to read "July1, 2019 - September 30, 2019 (if 2019 is the year selected in the dropdown box).
I have many other instructions in the change event and do not wish to convert all of it to FormCalc. Any help would be appreciated.