How to change Save button to update button while changing existed data

1
I've already created Trainee page and added some data to, while editing any trainee data I'd like to change save button to update button. How can I make it ?  
asked
1 answers
2

Assuming you haven't committed the object yet when it's new, you could do the following in the button caption:

 

1. Edit your caption

image.png

 

2. Set the caption to {1}, which is a parameter we will fill underneath, then click "new"

 

image.png

 

In the edit template parameter window, choose "expression"

 

image.png

 

In the expression, type something like:

 

if isNew($Trainee) 

then 'Save'

else 'Update'

 

Now save your parameters, and that should do the trick :)

answered