Resultion Tab fields to become required after status changes to resolved?

David_AcevedoDavid_Acevedo Customer IT Monkey ✭

Is there any Java function that allows this to happen? The end goal is to require analyst to input/update  their Time Worked  and custom fields. This needs to happen when the status = resolved. Any ideas how to make this happen?


 your help will be really appreciated


Answers

  • Geoff_RossGeoff_Ross Cireson Consultant Super IT Monkey ✭✭✭✭✭
    Hi David,

    Here is an example of remove the requirement from the Title field with JS. I would suggest you set these fields as required on the form definition and then run this on the specific controls if the status is not Resolved.
    $('[name=Title]').removeAttr("required")
    $('[for=Title]')[0].children[1].remove()
    The first line remove the actual required attribute which means the page can be saved without a value. The second line removes the (Required) text from the control's label.

    Geoff
  • David_AcevedoDavid_Acevedo Customer IT Monkey ✭

    Thank you sir, will give it a try and let you know. 
Sign In or Register to comment.