Member Dashboard

p 3.0

Frontend Forms for K2 and RSForm! Pro is a plugin that allows you to use your own RSForm! Pro forms to make/edit items in K2.

It features an easy configuration interface

Subscribe:

Use On Unlimited Sites

 

Frontend Forms for K2 and RSForm! Pro:

  • Associate fields in your form to K2 Item fields
  • Supports custom fields types and field category filtering
  • Allow front end users to create K2 Items in the front end using RSForm! Pro
  • Allow front end users to modify K2 Items in the front end using RSForm! Pro 
  • Moderation supported (enable/disable auto-publishing of submissions)

Requirements:

  • PHP 7+
  • Joomla! 3.x
  • RSForm! Pro

 

Version History

v1.0.1 - March 22, 2019

  • First public Release

 

K2 RSForms Pro Instructions

Installation instructions

Note: For the current version of the plugin there is still a requirement to create two separate forms. 1 for Adding K2 Items, 1 for Editing K2 Items

In a later version, this will be fixed in a future version

  • Install the plugin through the native Joomla Extension Installer (Extensions > Extensions Manager > Install)
  • Go to Extensions > Extension Manager > Manage and search for the plugin. Make sure to enable it.

"Item Create" Configuration

  • Once you are done configuring your form fields, you have to save the form at least once
  • Click on the "Form Properties" tab
  • At the bottom of the left Column, find the K2 Integration subtab
  • To Enable the plugin on your form, Set the Use K2 Integration value to Yes
  • The K2 Category field allows you to select the Item Category in K2 that will be bound to this form
  • If you want your submissions to be moderated by an administrator first, Select the Auto Publish (don't require admin approval) option
  • The Field Mappings section is fairly straightforward
    • The left column contains all the fields in your form
    • The Right column is a dynamic dropdown list of all the standard and custom fields associated with that category
  • The Advanced Mappings section allows you to manipulate the publish on, unpublish on and publish until values of the K2 Item
  • Handles File uploads 

 

"Item Edit" Configuration

  • Once you are done configuring your form fields, you have to save the form at least once
  • Click on the "Form Properties" tab
  • At the bottom of the left Column, find the K2 Integration subtab
  • To Enable the plugin on your form, Set the Use K2 Integration value to Yes
  • The K2 Category field allows you to select the Item Category in K2 that will be bound to this form
  • If you want your submissions to be moderated by an administrator first, Select the Auto Publish (don't require admin approval) option
  • The Field Mappings section is fairly straightforward
    • The left column contains all the fields in your form
    • The Right column is a dynamic dropdown list of all the standard and custom fields associated with that category
  • Create a menu Item for this form or embed it on a page
  • Setting up the data prefill on the form (to display existing data to be edited and re-saved)
    • For each field on your RSForm, edit the Default Data field
      //<code> return JFactory::getApplication()->input->get('form_data[FIELDNAME_IN_K2]','','RAW'); //<code>, enter a value similar to this

    • For URL fields, they are stored in 2 parts in K2. You can use something like this//<code> $ws = JFactory::getApplication()->input->get('form_data[website]','','RAW'); if(is_array($ws)) $ws = $ws[1]; return $ws; //<code>
  • You will need to add a hidden field called "cid" in your form
  • You can add a URL variable that will help you with making the form pick up the right K2 Item ID
    • e.g. http://mysite.com/edit-item/?cid=123
    • And then, use the value of that variable as the Default Data value in your form

      //<code> return JFactory::getApplication()->input->get('form_data[cid]','','RAW'); //<code>
  • The Advanced Mappings section allows you to manipulate the publish on, unpublish on and publish until values of the K2 Item

Installation Help

If you need installation and configuration help, or if you have an older version of Joomla and want this plugin tested and deployed, please contact us for quote..

By using this site you agree to the use of cookies.