Quintiq file version 2.0
#parent: #root
Method CheckFormHasChangesWithFeedback (
  internal[WebForm] webform,
  output String feedback_o
) as Boolean id:Method_ApplicationMacroPlanner_CheckFormHasChangesWithFeedback
{
  #keys: '[144528.1.991114488]'
  Body:
  [*
    // Check if form contains unsaved changes (dirty). If no changes, provide generic feedback.
    formHasChanges := webform.HasChanges();
    
    if( not formHasChanges )
    {
      feedback_o := Translations::MP_WebDesigner_NoChangesDetected(); 
    }
    
    return formHasChanges;
  *]
}
