• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: RSForms - Joomla! Articles: Subform Custom Field

RSForms - Joomla! Articles: Subform Custom Field 5 months 1 week ago #43726

  • patrick.jackson
  • patrick.jackson's Avatar
  • OFFLINE
  • Junior Boarder
  • Joomla Consultant, Melbourne Australia
  • Posts: 22
  • Thank you received: 4
Today I created a form and needed to work out how to use the "RSForms Pro Plugin - Joomla! Articles" to populate a Subform Custom Field row.

Solution:
Create the value being placed in the subform field as a JSON string so that it populates the subform field in the database.

How to know what the format needs to be?
  • You need to go and look in your #__fields_values table to see what the JSON string is for an existing record.
  • The table does not have a primary key, so you might have trouble seeing the full string. To get the full string, I used Regular Labs DB Replacer and did a search for values in that table were the field_id matches the subform field ID.
  • Copy that string and place it in the mapping in your RSForm
  • Replace the existing values in the copied string with the placeholder values.
  • Save and test your form.
Note that you don't need to additionally map each individual field in the subform - just the single record.

So that's the basics to get a single subform record to be in place.

Multiple subform rows
RSForms Pro at the moment doesn't have a built in or plugin based tool to manage multiple subform records at the moment. So if you need to collect multiple rows you may be able to achieve that by:
  • Creating repeating rows with a conditional fields configuration.
  • Mapping sets of those fields to additional JSON strings - note that this is difficult to do currently without ending up with blank rows.
  • You'll need to work out some PHP to do it.
  • Put a feature request in to RSJoomla to add the related functionality to the plugin.
Joomla Consultant & Hosting Provider
Melbourne Australia
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!