JavaScript-Bereich - JavaScript API

Page / - last modified by fse on 16.07.2021, 11:16

JavaScript API

last modified by fse

on 16.07.2021, 11:16

Table of Contents

Functins on jQuery objects

xutil

window

Xima® Formcycle provides a multitude of objects and utility functions to help you with creating complex forms easily.

Please refer to the help pages that are available for each release of FORMCYCLE at https://docs.formcycle.eu

Functins on jQuery objects

These functions are called directly on form and HTML elements that were selected with jQuery:

// Hide the form field named "tfZip"
$("[name='tfZip']").visible(false);

addRow and delRow event

jQuery.fn.addstar / jQuery.fn.removestar

jQuery.fn.autocompletedb / jQuery.fn.autocompleteldap

jQuery.fn.autonumeric

jQuery.fn.clear

jQuery.fn.cob2auto

jQuery.fn.dynamic

jQuery.fn.error

jQuery.fn.errorfunc

jQuery.fn.getcontainer

jQuery.fn.getlabel

jQuery.fn.hasattr

jQuery.fn.jsignature

jQuery.fn.replaceparams

jQuery.fn.setdatatype

jQuery.fn.seterror

jQuery.fn.setgroupreq

jQuery.fn.setmincheckbox / jQuery.fn.setmaxcheckbox

jQuery.fn.setminlength / jQuery.fn.setmaxlength

jQuery.fn.setminvalue / jQuery.fn.setmaxvalue

jQuery.fn.setmustequal

jQuery.fn.setrequired

jQuery.fn.setrequiredif

jQuery.fn.sum

jQuery.fn.validate

jQuery.fn.visible

xutil

These functions and properties are available in the global object $.xutil:

// Returns the URL for accessing a CSV data source (as configured in the backend)
// For example "/formcycle/datenquellecsv/"
$.xutil.getFormUrl("datasource_csv")

xutil.getdataquery

xutil.getformparam

xutil.getformurl

xutil.getldapquery

xutil.isstatus

xutil.onstatus

xutil.onsubmit

window

These functions and objects are available in the global window scope:

// Go to the page named "p2"
gotoPage("p2");

window.getprojektid

window.geturlparameter

window.gotopage

window.setvalidate

window.xm_validator