Data privacy notice

 

When this content is loaded, usage information is transmitted to Vimeo and may be processed there.

 

             

Pre-response

Modified on Mon, 17 Jul, 2023 at 9:13 AM


Interface IPluginFormPreRespond


Use cases

  • Displaying a blank response page
  • Retrieving the response page from another web service


When multiple pre-response page plugins are installed, their order of execution is arbitrary. You should not rely on a certain fixed order.


Pre-response page plugins are run for all forms of the client they belong to, or for all existing forms when installed as a system plugin. We recommend you check whether the plugin should be executed for the current form, for example by defining a plugin property containing a list of allowed forms.


Placement of the PreRespond plug-in in the process chain of FORMCYCLE


Method signatures

IPluginFormPreRespondRetVal execute(IPluginFormPreRespondParams params) throws FCPluginException


Passed value

The IPluginFormPreRespondParams type provides access to the following properties:

  • current project
  • current process
  • current version of the form with access to all contained form elements and their passed values
  • session parameters
  • current user context in order to be able to perform database operations, for example.


Return values

The return value must be of type IPluginFormPreRespondRetVal. A reference implementation is provided by the class PluginGenericFormProcessingRetVal, which expects a boolean flag during initialisation. If this has the value true, further processing is continued in form. If false, processing is aborted.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article