Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Note
titleContent Freeze

As of July 25th, 2023, there is a content freeze on this page.

The pui.inputfilter function, if defined, fires for each field that is modified on a Genie/5250 or Rich Display File screen. The function has the opportunity to modify the original user input before it is submitted to the server. This can be useful for filtering out undesirable characters, such as when the user copies/pastes data into the screen from another application.

...

Code Block
javascript
javascript

pui.inputfilter = function(value, fieldInfo, context) {

 return value.replace(/\t/g, " ").
              replace(/\u201C/g, "\"").
              replace(/\u201D/g, "\"").
              replace(/\u2018/g, "'").
              replace(/\u2019/g, "'");

}

...