Home Service Manager

Pre-Popuate Request Offerings based on textareaID

Nawin_SidduNawin_Siddu Member IT Monkey ✭
Hi All,

I need some help in pre-populating a text in the input field of RO in Cireson Portal
Searching through google gave me some ideas on how to populate this based on textareaid.

My problem is, textareaId does not seems to be constant value.

For E.g. when I use the below code, it works perfectly for the current session:
document.getElementById('textAreacb730239-787e-4827-9eae-6c2f3c7d9fd2').value = "1. Initiate Benefits Termination";

However, when my session timed-out or when initiating a new session, it didn't work. When I checked the the form gives a new textareaId "textArea70019fcb-ffb2-4660-93e7-d780360a66f7" where the old value that is configured in .js does NOT match.

Have anyone done this before? or am I missing something here. please help me. 


  • Options
    Jeff_LangJeff_Lang Customer Ninja IT Monkey ✭✭✭✭
    we actually do this ourselves on a number of request offerings, we get around the element ID by using the ROToolbox https://community.cireson.com/discussion/comment/14456#latest to add a attribute to the item we want to modify, then target that attribute instead of the actual ID, that way we know the attribute is always the same
  • Options
    Nawin_SidduNawin_Siddu Member IT Monkey ✭
    Hi Jeff,

    Thanks for your reply. I would give a try in my environment and will let you know the results.
Sign In or Register to comment.