I have requirement for one of the field in Modal window should have different labels conditionally meaning if condition met, property label will be Name(XYZ) and if not, label will be Name(ABC), but the property is same only.
I have put the same properties two times in the section with different labels and with visibility condition, but while closing the modal window, values are not saving properly.
Can anyone please help with how to achieve the above requirement?
***Edited by Moderator Marissa to add Capability tags***
@ShwetaB96 You cant have the same property referred twice in the same section . This will cause issues when the section is reloaded . So this option is ruled out.
Try to change the label to a field value where we can put <pega:When> if possible (this option should work
You can conditionally set the Property value and provide the Property in the field value and provide the field value as the label