I have a itemtype call 'Part' ,
Part has a field call 'part price' (type is decimal)
Part has a relationship call Part_detail
Part_detail has a field call 'RP price' (type is int).
I need "part price" to have thousand separator, but it is only for displayed, and does not need to be in the database after save
so I use onFormPopulated event to set
code as :
document.getElementsByClassName('part_price').value = originalValue.replace( RegExp, '$1,'$2');
It is work !
but I need "RP price" to have thousand separator ,too ! It is relationship and has no onFormPopulated event to code
What should I do to have the same effect as "part price" (thousand separator just for show , not need to save in database )?
and where I can edit relationship DOM ?