Forum Discussion

Ahmed_Amin's avatar
Ahmed_Amin
Copper Contributor
Apr 14, 2020
Solved

ProjectServer PDP - Set Field Value Based on Lookup field selection

Hi, I am trying to add JavaScript code inside Project Server PDP, that sets custom field value based on lookup table value selection. I tried many JavaScript Events (onchange, onselect, etc..) all ...
  • Ahmed_Amin's avatar
    Sep 11, 2021
    Finally i found how to do so, by attaching an event to the custom field as follows:

    FieldID.on('Event', function(e){
    e.target}, true);

    // true force event to run on child elements.
    // target --> gets the child that fired the event.

Resources