webMethods

webMethods

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

how to set an element to be required webmethods caf using javascript

  • 1.  how to set an element to be required webmethods caf using javascript

    Posted Thu May 24, 2018 10:19 AM

    I want to set required=true of an input in caf webMethods using javascript.

    this my code that I try to set required:

    if (CAF.model('#{activePageBean.clientIds['dropDowntypeFlux']}').getValue() == 'expo'){
    CAF.model('#{activePageBean.clientIds['htmlInputMatricule']}').setAttribute("required", "true");
    }

    but it does not work.


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


  • 2.  RE: how to set an element to be required webmethods caf using javascript

    Posted Fri May 25, 2018 07:09 PM

    Are you sure it doesn’t work? Maybe it just doesn’t get executed? You have to trigger that code somehow (using some events?).


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


  • 3.  RE: how to set an element to be required webmethods caf using javascript

    Posted Mon May 28, 2018 07:30 AM


  • 4.  RE: how to set an element to be required webmethods caf using javascript

    Posted Sun March 29, 2020 11:02 AM

    Did u solve it? Nothing works!

    I tried whit

    CAF.model('#{activePageBean.clientIds["htmlInputText4Comentario"]}').required = true;

    didnt work.


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