Lack of interest Auto Validation Updates fields if needed

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Uniphix

Active member
I have a request that could easily be implemented.

I would like it so that if a validation field uses something like &$title in _verifyTitle for Discussions. If you have & in there it should automatically update the text/textarea, radio, checkboxes and select/multiple selection with new values that represents them. If there is no &$title and just something like $value without the & then it would ignore the javascript update field...

For example:

Code:
/**
    * Verifies that the discussion title is valid
    *
    * @param string
    *
    * @return boolean
    */
    public function _verifyTitle(&$title)
    {
        // TODO: send these to callbacks to allow hookability?
 
        switch ($this->getOption(self::OPTION_ADJUST_TITLE_CASE))
        {
            case 'ucfirst': // sentence case
                $title = utf8_ucfirst(utf8_strtolower($title));
                break;
 
            case 'ucwords': // title case
                $title = utf8_ucwords(utf8_strtolower($title));
                break;
        }
 
        return true;
    }

I understand that the titles will update AFTER the thread has been submitted, I would like it to update at real time...

Otherwise I'll have to send ajax requests two time, one for validation and the other to change the values after the validation changes.
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Top Bottom