Please read and follow the COMMON ISSUES first!
Always add your version information in every new post! Thank you!

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Pieter-Jan de Vries
  2. Form2Content Lite & Pro
  3. Tuesday, 19 February 2019
  4.  Subscribe via email
Hi,

This issue concerns the plugin API of Form2Content 6.17.4 (Joomla 3.9.3).

The onAfterF2cContentSave event handling method receives a F2cEventArgs parameter. The contents of that object is rather illogical and counterintuitive. Let me explain using the title:

$args->formNew->title contains the text for the title of the field. However, $args->fields->title->values and $args->fieldsNew->title->values are empty. This is not the case for custom (non standard Joomla! article) fields. For those fields the values array contains the entries for the associated field.

Why dis discrepancy? Why do $args->fields->title->values and $args->fieldsNew->title->values not contain the value of the title field?

Regards,
Pieter-Jan de Vries
Responses (1)
Accepted Answer Pending Moderation
Hi Pieter-Jan,

Julien will get back to you on this after his holiday this week.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.