protected function SetJSFieldValue($field, $value)
    {
        $jsField = Str::ToJavascript($field, false);
        $jsValue = Str::ToJavascript($value, false);
        echo "<script>$($jsField).val($jsValue);</script>";
    }
protected function SetJSFieldValue($field, $value)
    {
        $jsField = Str::ToJavascript($field, false);
        $jsValue = Str::ToJavascript($value, false);
        echo "<script>$($jsField).val($jsValue);</script>";
    }
protected function SetJSFieldValue ( $ field , $ value ) { $ jsField = Str :: ToJavascript ( $ field , false ) ; $ jsValue = Str :: ToJavascript ( $ value , false ) ; echo "<script>$($jsField).val($jsValue);</script>" ; }
Sets a field value as typical action of a modal form call
@param string $field The field specifier; typically starting with '#'
@param string $value The value
Sets a field value as typical action of a modal form call