I have a web application where I want to access field values for computed fields with JavaScript. I have enabled “Generate HTML for all fields” and it works fine as long as the computed fields don’t contain carriage returns. But if a user enters a carriage return into a field, the tag isn’t generated any longer for this field.
Does anyone have a solution how to work around this so that I can access the field values with JavaScript?
Subject: Generate HTML for all fields doesn’t work with carriage return
Create some computed text to create the HTML field. Make it type=hidden and set the value. If you give it an ID but not a name this will allow you to access it via JavaScript but will prevent it from being submitted back to the server.
Subject: Generate HTML for all fields doesn’t work with carriage return
You shoulod not be selecting “Generate HTML for All fields”, unless that is what you really want to do. The only fields you need to expose are the ones JavaScript needs access to. This will prevent inadvertent exposure of confidential or sensitive data on the web.