Fixed Form filler doesn't work well with Disabler

TickTackk

Well-known member
Affected version
2.0.2
If I attempted to update a value of a radio which had a dependent text field then the Disabler doesn't mark the text field as enabled.

Best example would if extended class XF\Pub\View\Member\WarnFill and used this code
PHP:
<?php

namespace SV\WarningImprovements\XF\Pub\View\Member;

/**
* Extends \XF\Pub\View\Member\WarnFill
*/
class WarnFill extends XFCP_WarnFill
{
    public function renderJson()
    {
        $response = parent::renderJson();

        $response['formValues']['input[name=content_action][value="public"]'] = 1;

        return $response;
    }
}

Above code will make the radio button checked but the Disabler never does its magic stuff.
 
Last edited:
Top Bottom