Need the same XQ or JS function in multiple responses?
Define it in the script library and use it in any script-capable input field.