protected function wasListFieldSubmitted($fieldName, $dataKey)
	{
		if (!is_array(\Input::post('FORM_FIELDS'))) {
			return false;
		}

		if (strpos($fieldName, '__rsce_dummy__') !== false) {
			return false;
		}

		$formFields = array_unique(\StringUtil::trimsplit(
			'[,;]',
			implode(',', \Input::post('FORM_FIELDS'))
		));

		$fieldPrefix = $fieldName . '__' . $dataKey . '__';

		foreach ($formFields as $field) {
			if (substr($field, 0, strlen($fieldPrefix)) === $fieldPrefix) {
				return true;
			}
		}

		return false;
	}
protected function wasListFieldSubmitted($fieldName, $dataKey)
	{
		if (!is_array(\Input::post('FORM_FIELDS'))) {
			return false;
		}

		if (strpos($fieldName, '__rsce_dummy__') !== false) {
			return false;
		}

		$formFields = array_unique(\StringUtil::trimsplit(
			'[,;]',
			implode(',', \Input::post('FORM_FIELDS'))
		));

		$fieldPrefix = $fieldName . '__' . $dataKey . '__';

		foreach ($formFields as $field) {
			if (substr($field, 0, strlen($fieldPrefix)) === $fieldPrefix) {
				return true;
			}
		}

		return false;
	}
protected function wasListFieldSubmitted ( $ fieldName , $ dataKey ) { if ( ! is_array ( \ Input :: post ( 'FORM_FIELDS' ) ) ) { return false ; } if ( strpos ( $ fieldName , '__rsce_dummy__' ) !== false ) { return false ; } $ formFields = array_unique ( \ StringUtil :: trimsplit ( '[,;]' , implode ( ',' , \ Input :: post ( 'FORM_FIELDS' ) ) ) ) ; $ fieldPrefix = $ fieldName . '__' . $ dataKey . '__' ; foreach ( $ formFields as $ field ) { if ( substr ( $ field , 0 , strlen ( $ fieldPrefix ) ) === $ fieldPrefix ) { return true ; } } return false ; }
Check if a field was sumitted via POST

@param  string $fieldName field name to check
@param  int    $dataKey   data index
@return boolean           true if the field was sumitted via POST
Check if a field was sumitted via POST