IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Changing the text style in Caf using Jscript

  • 1.  Changing the text style in Caf using Jscript

    Posted Fri December 31, 2010 11:07 AM

    how to change background color of text input if no value is entered in the box while submitting the form


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 2.  RE: Changing the text style in Caf using Jscript

    Posted Mon January 03, 2011 11:07 PM

    hi,

    in the validation javascript, you can include following script to change the background of textInput

    var sampleTextInputCtrl = CAF.model(‘#{activePageBean.clientIds[‘sampleTextInputControl’]}’);

    sampleTextInputCtrl.element.style.backgroundColor=“yellow”;

    Hope this helps.

    regards,
    Raja sekhar Kintali


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 3.  RE: Changing the text style in Caf using Jscript

    Posted Wed January 05, 2011 07:14 AM