You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Extending OOTB "SearchButton" Widget to make fields required for search

Accepted answer
edited Jul 18, 2019 12:32AM in Customer Portal 2 comments


I need help extending OOTB "SearchButton" widget. We need to make certain fields required to allow search for the customer.


We have a required to search on patients (basically, contacts with Type=Patient). But, we need to make certain fields required to allow the search on patients. So, I tried extending the OOTB "SearchButton" widget. 

I got the alert working in when the "Search" button is clicked without the "First Name" field but the search still goes through (it does not seem to be blocking the search). 

I understand when I am extending the javascript - I will inherit everything the parent. 

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!