Popup window knowledge article
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 03:43 AM
HI,
I need help making fields in popup window Portal view mandatory.
for example the details filed in this popup to become mandatory.
thank a lot

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 04:32 AM
Hi @eyal abu hamad,
It's easier to help if you share the code for the popup.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 04:35 AM
This is OOTB widget

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 04:43 AM
In that case you need to clone the Knowledge Article Content Widget, and change the Client controller as shown below:
c.submitFeedbackTask = function(){
if(!c.data.reason){
c.flagMessage = "${Please provide the mandatory details}";
$("#detailsComment").focus();
return false;
}
// Start Customization
if(!c.data.details){
c.flagMessage = "${Please provide the mandatory details}";
$("#detailsComment").focus();
return false;
}
//End Customization
else{
c.submitted = true;
c.closePopup();
}
}
Then replace the OOTB widget on the Portal Page with your cloned one.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 05:13 AM
where do I change the widget ?
thanks