I was very excited to be able to update the button label with the new LFForm object library. However, the Action History does not seem to honor the labels. Action History still just shows Submit as the decision that occurs instead of the label that it was changed to prior to clicking the button.
The use case here is that I need to make a decision before I submit the form to help control what the required fields are. So the Submit button labels change based on the decision field value. However, the Action History does not easily indicate what decision was made.
Out of the box when we change the label on the user task it DOES change what is shown in the Action History. So I do not understand why the LFForm object action changeActionButton does not change it in the same way.
LFForm.onFieldBlur(() => updateActionButton(), {fieldId: 89}); function updateActionButton() { var decision = LFForm.getFieldValues({fieldId: 89}); console.log(decision); LFForm.changeActionButton("Submit", {label: decision}); }