APIs on form output

Hook: ipt_fsqm_hook_form_before Triggered right before the output of the actual form. This is triggered only if the form is submitable. Hook Uses Accepts one parameter, a reference to the IPT_FSQM_Form_Elements_Front object. [php] /** * Hooks into fsqm form output (before all elements) * And prints some custom HTML * * @param object $obj Reference to […]

Read More

APIs on label and richtext output handling

Filter: ipt_uif_richtext This filter is used to modify the richtext contents of element descriptions. Filter Uses Accepts one argument, the HTML string (rich text). [php] /** * Modifies RichText Elements inside all eForm output * * @param string $text Original text/html * * @return string */ function modify_fsqm_richtext( $text ) { // Perform some action […]

Read More

APIs on third party integrations

Hook:ipt_fsqm_hook_integration Triggered when a submission is saved for the first time by a user and all predefined integrations have been processed. Hook Uses Accepts one argument, a reference to the IPT_FSQM_Form_Elements_Data object. [php] /** * Add into the integration execution hook * To carry out our custom integration * * @param object $obj A reference […]

Read More

APIs on file upload handling

Hook: ipt_fsqm_hook_save_fileupload Triggered when saved files are updated after a successful submision save. Hook Uses Accepts one argument. A reference to IPT_FSQM_Form_Elements_Data object. [php] /** * Hooks into filesave event during a submission * * @param object $obj Reference to IPT_FSQM_Form_Elements_Data object */ function hook_fsqm_filesave( $obj ) { global $wpdb, $ipt_fsqm_info; // Get the uploaded […]

Read More

APIs on Form Submission Handling

Hook: ipt_fsqm_hook_save_insert Triggered when a new submission is stored in the eForm data table. Hook Uses The callback function is passed only one argument. A reference to the IPT_FSQM_Form_Elements_Data object that has called the hook. [php] /** * Hook into ipt_fsqm_hook_save_insert * * @param object $data Object reference to IPT_FSQM_Form_Elements_Data */ function fsqm_hook_save_insert( $data ) […]

Read More

APIs on form variables and data structure

Filter: ipt_fsqm_filter_valid_elements Filter is used to extend form elements which can be used by the form builder. All valid elements are categorized into four sections: Design Elements: Elements that controls the appearance of the form and has nothing to do with actual HTML form elements. MCQ Elements: Quiz elements, where scores can be set. Feedback […]

Read More

APIs on basic form & submission administrative actions

Hook: ipt_fsqm_forms_deleted This is triggered when eForm is about to delete some forms from the system. Hook Uses The callback function accepts one parameter, an array of form ids that is about to get deleted. [php] /** * Hook use ipt_fsqm_forms_deleted */ function hook_into_forms_deleted( $ids ) { global $ipt_fsqm_info, $wpdb; $delete_ids = implode( ‘,’, $ids […]

Read More

APIs on form builder & plugin menu modification

Following APIs are available for modifying form builder and eForm plugin menu. Filter: ipt_fsqm_admin_tab_settings The ipt_fsqm_admin_tab_settings filter is used to filter the form builder settings tabs. Filter Uses When being called, it passes two parameters. First one is an associative array of settings tabs and their callback functions. The second is the IPT_FSQM_Form_Elements_Admin object that has […]

Read More

User Roles, Capabilities and Access Privileges

eForm comes with the following access privileges. User Role Access: Administrator/Editor: Can administrate, edit, create, view, delete forms and submissions. Also can modify settings. Authors: Can view submissions only. Capability used by eForm: If you’d like to add capabilities to custom/inbuilt user roles, then you’d need these information. Capability Menu Pages Usage Super Admin Administrator […]

Read More