/**
 * Created by elisahilprecht on 09/04/15.
 */
(function(){
  var clickOnErrorMessage = function(e) {
    e.toElement.setAttribute('class','help-inline display-none');
    document.getElementById(e.toElement.id.replace('ErrorText','')).focus();
  };

  var clickOnInputField = function(e){
    document.getElementById(e.toElement.id+'ErrorText').setAttribute('class','help-inline display-none');
  };

  var helpInlines = document.getElementsByClassName('help-inline');
  for(var i=0; i<helpInlines.length; i++){
    var ele = helpInlines[i];
    if(ele.getAttribute('class')==='help-inline'){
      ele.onclick = clickOnErrorMessage;
    }
  }
  var inputFields = document.getElementsByTagName('input');
  for(var j=0; j<inputFields.length; j++){
    ele.onclick = clickOnInputField;
  }
})();

@@ -631,16 +631,263 @@
 essage;%0A
+      var inputId = ele.id.replace('ErrorText', '');%0A      var inputValue = document.getElementById(inputId).value;%0A      if(inputValue!==undefined && inputValue!=='')%7B%0A        ele.setAttribute('class', 'help-inline help-inline__bottom' )%0A      %7D%0A
     %7D%0A  

Set error message at the bottom, if input field is filled.