You can have gotten or set the response value, now put it some place:
var sResponse
sResponse=xfa.host.response("Enter the Accident Number", "IAR")
if (sResponse!=null) then
(sResponse = text1.rawValue)
endif
$.rawValue = response
xfa.host.messageBox(Concat("Entered IAR is: ",
sResponse), "Debugging", 3);
$.rawValue = sResponse
// or use the response method to autofill the default text
// get: "Accident Number", title: "IAR", default text: text1.formattedValue
var sResponse = xfa.host.response("Enter the Accident Number", "IAR", text1.formattedValue);
xfa.host.messageBox(Concat("Entered IAR is: ",
sResponse), "Debugging", 3);
$.rawValue = sResponse