Skip to main content
Participant
December 20, 2017
Question

How can I add a custom calculation script to multiple fields simultaneously?

  • December 20, 2017
  • 1 reply
  • 990 views

I have a very long form and I have a script for the column at the end of each row. I could go into each of those fields and copy/paste it in the custom script box, but I really don't want to do that several hundred times over. Selecting multiple fields removes the 'Calculate' tab from the properties. Please let there be a fast way to do this. If it helps to have an example, the column in question is comprised of sub total fields, 'Sub Total 1', 'Sub Total 2', etc.

This topic has been closed for replies.

1 reply

Inspiring
December 20, 2017

If the script is essentially the same for each calculated field, it best to add it to a document-level script and call it from each calculated field. You can use a script to add the call to the document-level function, using the field.setAction method. If you meed help with converting the script so it will work as a document-level function or with the script that uses the setAction method, post again.