Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This is the documentation for ConfiForms Server/Data Center app

However, this might also work for ConfiForms cloud and in most cases it does. But please see this page to understand the differences between server and cloud versions of the ConfiForms app.


In this tutorial you will learn how to override ConfiForms Register macro defaults using URL query parameters

Error rendering macro 'excerpt-include'

No link could be created for 'Creating a simple form'.

There is a way to override some defaults of ConfiForms Register macro. You can override form mode (embedded or dialog), as well as set default parameters from the URL (query string)

3 parameters are supported

  • cf_name - expects form name (as you might have multiple ConfiForms Register macros on the page, this is a way to reference one particular form)
  • cf_embedded - expects true or false for the form mode, true means the form will be shown in embedded mode, and false will show the form in dialog mode
  • cf_values - expect a key:value pairs separated by ; where key is the name of the field you want to set the values for and value is the value you want to set. Support is somewhat limited to text fields and fields with simple values (dropdowns expect ids, smart fields actually expect internal guids, fiel types are NOT supported)

 

Let's have a simple form of 3 fields (all are of text type), which uses default ConfiForms Register macro

Form name is "f". The form is created in space named MYTEST and page name is "Simple registration"

 

The form looks like this when in page view mode (admin user):

 

To override form mode, one will do the following:

http://wiki.vertuna.com/display/MYTEST/Simple+registration?cf_name=f&cf_embedded=true

The form will be shown in embedded mode

To set the default values for the form fields:

http://wiki.vertuna.com/display/MYTEST/Simple+registration?cf_name=f&cf_values=t1:hello;t2:world

Here we set field t1 to Hello and field t2 to world

 

  • No labels