Make fields Classification and Source mandatory
Best Answers
-
john_doyle Cireson Support Ninja IT Monkey ✭✭✭✭Hi Robert,
You can make a field required in the Incident form by copying the form template (Incident.js) from C:\inetpub\CiresonPortal\Scripts\forms\templates to the C:\inetpub\CiresonPortal\CustomSpace folder.
Edit the js file, find the Classification control definition and add Required:true{ DataType: "Enum", PropertyDisplayName: "Classification", PropertyName: "Classification", EnumId: '1f77f0ce-9e43-340f-1fd5-b11cc36c9cba', Required: true },
You can preset values for controls on the form by defining a template and setting that template as the default template for incident creation.
Alternatively you could use JavaScript to set the values when the incident is new. I think this is the simpler of the solutions to implement.
1 -
Robert_Osterberg Customer Advanced IT Monkey ✭✭✭Thank you for a quik response. I will try this out0
Answers
You can make a field required in the Incident form by copying the form template (Incident.js) from C:\inetpub\CiresonPortal\Scripts\forms\templates to the C:\inetpub\CiresonPortal\CustomSpace folder.
Edit the js file, find the Classification control definition and add Required:true
You can preset values for controls on the form by defining a template and setting that template as the default template for incident creation.
Alternatively you could use JavaScript to set the values when the incident is new. I think this is the simpler of the solutions to implement.
https://support.cireson.com/KnowledgeBase/View/51#/
so how would i go about to make the listPicker have a default value as Source when i open e new incident, or a default value in the support group list quikcreate? Is it the property "name"?
Then in the portal Settings update the value to match your template.