Why does hiding description field on analyst incident forms generates error in controller.js?
I am trying to hide the description field on our analyst incident forms by using an custom incident.js file and commenting out the description section:
/*{ columnFieldList: [ { DataType: "LongString", PropertyDisplayName: "Description", PropertyName: "Description", MinLength: 0, MaxLength: 4000, Disabled: true} ] },*/
After changing the incident form i get an error when viewing the incident form:
Hiding other fields works by this method works fine. Why is it a problem to hide the description field? Any help appreciated. Maybe there is another way desciption can be hidden? But also very curious why hiding it via incident.js causes controller.js to run into this error.
Thanks for helping out!
Answers
This seems to affect only the analyst form, removing description from end-user section works fine.
What version of the Portal are you running? I have tried this in my lab and I get no issues at all.
Thanks,
Shane.
I just tried this on my environment and I have not had an issue.
The Description field does not show for me and there are no errors int he console tab of the developer tools.
Ensure you have followed the following troubleshooting steps:
- Remove the Incident.js file from the CustomSpace folder and re-test.
- Copy a clean version of Incident.js from the template folder to CustomSpace folder and comment out just the Description field and re-test.
- If the error persists, delete the entire Description field row from Incident.js in the CustomSpace folder and re-test.
- If after each of these tests, the error continues, try resetting IIS by stopping the website, recycling the app pool and running IISReset.
There is no technical reason that what you are attempting to do would fail.Let us know how you go with this testing.