formio / ngFormioHelper

A library to help build Angluar.js applications on top of Form.io.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Form not rendering in add & edit action page: Version-4.0.0-beta.1

Inaamhusain opened this issue · comments

After upgrading to Version-4.0.0-beta.1. Form actions settings forms are not loading.
Looks like there is an issue with the scope variable of actionInfo. data is reflecting properly but the reference of that variable is the same. due to which form is not rendering.

Below is the code which is not working as expected.

// Get the action information.
    var getActionInfo = function(name) {
      return $scope.formio.actionInfo(name).then(function(actionInfo) {
        if(actionInfo) {
          $scope.actionInfo = _.merge($scope.actionInfo, actionInfo);
          return $scope.actionInfo;
        }
      });
    };

@travist I have created a pull request with a fixed. You can find that here, #53

@randallknutson @travist Can you please validate pull request which I have mentioned in the above comment.

@randallknutson Fixed following on actions page,

  • Actioninfo settings not changing reference due to which action settings form not loading.
  • Clear cache onload action.
  • Setting form edit action URL update.
  • Removed form-action attr from edit action page template.

I have created pull request. can you please check and merge.

@randallknutson @travist Can you please validate above fixes. Pull request mentioned in above comments.

@randallknutson @travist can you please check changes that I have made to support formiojs v4.
I need these changes to be in place before proceeding to version update.
#53