Inside Activate
...
Troubleshooting
Web Form Error When Rendering Bindings With Special Characters
5 min
overview web forms in activate may fail to render correctly when bound values include special characters such as %, =, or @ this commonly occurs when displaying passwords or other dynamically generated text that has not been encoded symptoms you may encounter an error when loading a web form that attempts to render a binding containing special characters the form may fail to display or throw a rendering exception at runtime cause the issue occurs because certain characters are interpreted as markup or expressions when rendered in a web form if bound values are not html encoded, special characters can break the rendering process resolution ensure that any text containing special characters is html encoded before being used in a binding encode the value in server side code use html encoding to safely render the value string p = system web httputility htmlencode(password); trace writeline(p); p = p replace("%", "%") replace("=", "=") replace("@", "@"); use expression based encoding where possible, use the built in http encoding function to encode values before rendering them in the form this ensures that special characters are handled safely and prevents rendering errors notes and considerations this issue commonly occurs with password or credential fields always encode values before rendering them in web forms test forms with representative data to confirm correct behaviour