Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

Showing red colour asterisk in ICN search templates

  • 1.  Showing red colour asterisk in ICN search templates

    Posted 10/07/21 10:05 AM

    Hi All,

    Background: Currently I have a content navigator search template. This search template has 5 search fields. I have below code to change the labels of these fields.

    Current code:

    aspect.before(ecm.widget.search.SearchForm.prototype, "_createSearchField", function (criterion, tablename, isChildCriterion, operatorHidden) {

    if (this._searchTemplate.name === 'S1') {

    if (criterion.name === 'XYZ') {

    criterion.name = 'Custom label*';

    }

    }

    });

    Requirement: I need to show red colour asterisk(*) for these fields to indicate mandatory fields.

    What I have done so far: I put asterisk(*) as part of labels for these. Yes of course it is showing default colour and not red colour.

    Note: For some reason I am not using required property while creating or editing search template. Hence need to show explicitly red colour asterisk(*).

    Regards,

    Ravi



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: Showing red colour asterisk in ICN search templates

    Posted 10/15/21 04:58 PM

    _createSearchField , aspect.before are private methods which shouldn't be used - not supported. The right way is to indicate a required property is to mark it as required - that will show the red asterisk.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration