Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

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

Open
Inaamhusain opened this issue Sep 24, 2019 · 5 comments
Labels

Comments

@Inaamhusain
Copy link

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;
        }
      });
    };
@Inaamhusain
Copy link
Author

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

@Inaamhusain
Copy link
Author

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

@Inaamhusain
Copy link
Author

@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.

@Inaamhusain
Copy link
Author

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

@Inaamhusain
Copy link
Author

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant