Get form input in custom field

by svanschu   Last Updated May 06, 2019 09:10 AM

I'm currently working on a custom field, where I manually add a checkbox to a file upload field. PDF Upload field

In onContentBeforeSave I want to read this checkbox to decide what to do with the file upload. I figured out to get the checkbox with

$jinput->post->getArray()['jform']['com_fields'][$fieldname.'_choverride']

It works, but I thought it's a pretty ugly call.

Is there a nicer, better way to do this?



Related Questions


Updated October 25, 2017 08:10 AM

Updated July 16, 2018 21:10 PM

Updated September 03, 2018 06:10 AM

Updated November 06, 2017 11:10 AM

Updated April 26, 2017 10:10 AM