Custom flexi content plugin update value

More
10 months 3 weeks ago - 9 months 1 day ago #69044 by Ali_wdm
I found solution by myself.
Last edit: 9 months 1 day ago by Ali_wdm.

Please Log in or Create an account to join the conversation.

More
10 months 3 weeks ago #69048 by ggppdk
Hello

also already implemented for next version

a new plugin event for our FLEXIcontent fields:
// Method to do extra handling of field's values after all fields have validated their posted data, and are ready to be saved
	// $item->fields['fieldname']->postdata contains values of other fields
	// $item->fields['fieldname']->filedata contains files of other fields (normally this is empty due to using AJAX for file uploading)
	function onAllFieldsPostDataValidated( &$field, &$item )
	{
	}

Thus you can access the validated value of all other fields , just before saving all fields to the DB
$item->fields['fieldname']->postdata contains values of other fields


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.