public function formAction(HTTPRequest $request)
    {
        $formName = $request->param('FormName');

        // Get the element ID from the form name
        $id = substr($formName, strlen(sprintf(self::FORM_NAME_TEMPLATE, '')));
        $form = $this->getElementForm($id);

        $field = $form->getRequestHandler()->handleField($request);

        return $field->handleRequest($request);
    }
public function formAction(HTTPRequest $request)
    {
        $formName = $request->param('FormName');

        // Get the element ID from the form name
        $id = substr($formName, strlen(sprintf(self::FORM_NAME_TEMPLATE, '')));
        $form = $this->getElementForm($id);

        $field = $form->getRequestHandler()->handleField($request);

        return $field->handleRequest($request);
    }
public function formAction ( HTTPRequest $ request ) { $ formName = $ request -> param ( 'FormName' ) ; // Get the element ID from the form name $ id = substr ( $ formName , strlen ( sprintf ( self :: FORM_NAME_TEMPLATE , '' ) ) ) ; $ form = $ this -> getElementForm ( $ id ) ; $ field = $ form -> getRequestHandler ( ) -> handleField ( $ request ) ; return $ field -> handleRequest ( $ request ) ; }
Provides action control for form fields that are request handlers when they're used in an in-line edit form.

Eg. UploadField

@param HTTPRequest $request
@return array|HTTPResponse|\SilverStripe\Control\RequestHandler|string
Provides action control for form fields that are request handlers when they re used in an in - line edit form .