The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
RSV html-display - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: RSV html-display (/showthread.php?tid=90)



RSV html-display - fyrftr72 - Mar 27th, 2009

I have implemented the RSV validation script.
Code:
rsv.displayType = "display-html";
rsv.errorFieldClass = "errorFieldDemo2";

var rules = [];
rules.push("required,Name,Please enter your full name.");
rules.push("required,Email,Please enter your email address.");
rules.push("valid_email,Email,Please enter a valid email address.");
rules.push("required,Message,Please enter your message.");

Placed the empty div: <div id="rsvErrors"></div> where I want it.

I then embedded the CSS on the form page.
Code:
.errorField {
    background-color: #990000;
    color: white;
  }

.errorFieldDemo2 {
    background-color: #FFECB3;
    color: #990000;
  }
It works but the problem is it will not call the "errorFieldDemo2". It loads a generic error list.

Thanks for your help, Gene


RE: RSV html-display - Ben - Mar 30th, 2009

Hey Gene,

Ah - the rsv.errorFieldClass setting is an optional CSS class that it assigns to fields that fail the validation - not to the error messages that are inserted into the page. To do that, just add the class to the main rsvErrors element, like so:

Code:
<div id="rsvErrors" class="errorField"></div>

You may want to also add a style="display:none" attribute to it. RSV will automatically display if it's hidden.

Any help?


RE: RSV html-display - fyrftr72 - Mar 30th, 2009

(Mar 30th, 2009, 10:41 AM)Ben Wrote: Hey Gene,

Ah - the rsv.errorFieldClass setting is an optional CSS class that it assigns to fields that fail the validation - not to the error messages that are inserted into the page. To do that, just add the class to the main rsvErrors element, like so:

Code:
<div id="rsvErrors" class="errorField"></div>

You may want to also add a style="display:none" attribute to it. RSV will automatically display if it's hidden.

Any help?

Thanks for the reply Ben. It's all working good now!