BPM, Workflow, and Case

BPM, Workflow, and Case

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

 View Only
  • 1.  Custom text area with max length

    Posted Sat August 22, 2020 09:15 AM
    im on bpm 8.5.6 and using mainly IE 9 as browser. I need to set the maxlength attribute of a textArea (i used the one provided in the coaches toolkit and tried fiddling with it) to 1000. However, i cant seem to get it. i tried locating the textArea tag in the html once the view is loaded (in the view tab of the coach view) and adding with jQuery the maxlenght attribute to no avail (i know this works cause i edited the html myself in chrome, added the attribute and got the desired behaviour).


    i dont know if my approach is correct or i should just use a textbox  (which has the maxlength as a configuration option) and try to convert it to a text area 

    any help would be really appreciated

    ------------------------------
    Hernan Gaona
    ------------------------------


  • 2.  RE: Custom text area with max length

    Posted Sat August 22, 2020 11:55 PM

    Your problem most likely is because HTML 4.x did not require max length enforced on textarea - so IE9 is ignoring it. Ideally you would want to move away from IE9. In the meantime, you can use custom JavaScript to limit the number of characters in the text area controls. 

    All the best!



    ------------------------------
    Ajay Katre
    Sacramento CA
    ------------------------------



  • 3.  RE: Custom text area with max length

    Posted Mon August 24, 2020 07:40 AM
    Ajay, thank for the reply. Unfortunately im stuck in ie9 for the moment. As for the script, dou you have any example y could use? the script should be in a new custom html component and reference the textbox area, correct?

    ------------------------------
    Hernan Gaona
    ------------------------------



  • 4.  RE: Custom text area with max length

    Posted Tue August 25, 2020 09:38 AM
    you can use a onkeyup event for the text area DOM element to control the max length that can be typed inside the text area
    hope this helps - https://stackoverflow.com/questions/9109313/maxlength-for-text-area-doesnt-work-in-ie
    you can register the eventhander in the load section of your coach view if you are creating a custom one or wrap the original text area inside a wrapper CV.

    ------------------------------
    Vivekananth Thangavelu
    ------------------------------



  • 5.  RE: Custom text area with max length

    Posted Thu September 17, 2020 09:40 AM
    Hi Hernan,

    Please see my answer in https://community.ibm.com/community/user/automation/viewdocument/bpm-custom-text-area-with-max-leng?CommunityKey=810abde6-3916-441b-aac3-b9105bb37e3c&tab=librarydocuments

    Hope it helps.

    ------------------------------
    Varun Sangwan
    ------------------------------