Menu

Forsta Scripting Support

All the topics, resources needed for Forsta Scripting.

  • About the f Function

    The f function is probably the most important function available in Forsta Plus. It is used to access survey variables/questions, and we have already ...

  • Calling the f Function

    f(qID,{loopiter1,loopiter2,...,loopitern}) returns a form object of some kind. A form is a question or loop node in a survey, and the argument qID is t...

  • Storing the Form Object in a Variable

    The form objects can be large data structures with long answer lists and texts. Every call of the f function will result in a new instance being retrieved. I...

  • Compounds

    The f function returns in fact different objects for different question types. These objects have some properties and methods in common, but some are ...

  • Properties

    The form objects can have the following properties, depending on the type of the question (x represents a form object returned from the f function): ...

  • The f Function Methods

    The methods of the form objects are listed below.MethodsCODEDOPENBOOLDATENUMERICDICHOTOMYCOMPOUNDGEOtoBooleanXXXXXXXXtoNumericXX  XX  toIntXXX XX  toD...