Prado\Web\UI\WebControls\TRequiredFieldValidator::getControlPromptValue PHP Method

getControlPromptValue() protected method

protected getControlPromptValue ( ) : string
return string the initial value of the associated input control. Defaults to empty string. If the associated input control does not change from this initial value upon postback, the validation fails.
    protected function getControlPromptValue()
    {
        $control = $this->getValidationTarget();
        if ($control instanceof TListControl) {
            return $control->getPromptValue();
        }
        return '';
    }