how can i set default values on relationship using JS

Hello I want to set default values on relationship when creating an item from the relationship sing JS. 

  • Hi HKhan

    Is it a default value you need to set on the relationship property or the related item property ? 

    Is the default value same for all or you want to set the value based on some condition ?

    if yes, You can set the default value in the item type itself (Default Value Property)

    else, You can write you custom method and attach to the item type. Check this method PE_SetOriginator