google/sf-evolve-forms

Save button doesn't work all the time

Closed this issue · 2 comments

Expected Behavior

The save button is active whenever a field is modified.

Actual Behavior

Sometimes the save button is greyed out and remains grayed out.

Steps to Reproduce the Problem

Unknown.

I had a problem getting the Save button to function. I thought it was because I overwrote the Edit Button as noted on the Setup page. When I removed that the Save button worked fine.

However, the Save functionality disappeared again at some point, and nothing I did would make it return.

  • Not even removing all Evolve Forms details off the page, saving the page, and then re-adding them one by one.
  • Not even opening in a different browser made it come back.
  • Not even deleting the Lighting Page and rebuilding it would make it come back.
  • Not even starting on a new object would make it come back.

Specifications

  • Tried in both Chrome and Edge on Windows

The save button will be grayed out if there is a required field that is does not have a value; this is the code which implements the conditional disabling of the save button.

Here's a demonstration of this in action:
Evolve Save Button

Oh dear! OK, well I will close this ticket and open another ticket about bizarre required field behaviour.