XF 2.1 Pass custom data-* field from <xf:textbox>

abdfahim

Well-known member
I have the following in a template

Code:
<xf:textbox name="some_field" value="" type="text" maxlength="11" data-show="none" />

In my php class (that extends XFCP_Account), I can access the value using

Code:
protected function someFunc($userid)
    {
        $form = $this->formAction();

        $input = $this->filter([
            'some_field' => 'str',
        ]);

Is there any way I can access the field data-show?
 
Top Bottom