Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit user fields - Drupal 8 #42

Open
pure4Sk opened this issue May 15, 2016 · 1 comment
Open

Edit user fields - Drupal 8 #42

pure4Sk opened this issue May 15, 2016 · 1 comment

Comments

@pure4Sk
Copy link

pure4Sk commented May 15, 2016

Is it possible to edit user fields via jDrupal? I am working with Cordova and this doesnt seems to work:

jDrupal.userLoad(1).then(function(user) {

                    alert("value "+user.entity.field_test[0].value);

                    user.entity.field_test[0].value="987654";

                    user.save().then(function() {
                        console.log('Saved ');
                    });

                    console.log('Loaded : ' + user.getAccountName());
                });

User would be logged in.

@pure4Sk pure4Sk changed the title Editing node Editing user fields - Drupal 8 May 15, 2016
@pure4Sk pure4Sk changed the title Editing user fields - Drupal 8 Edit user fields - Drupal 8 May 15, 2016
@e2o
Copy link

e2o commented May 20, 2016

Could you provide some more information? What exactly is not working, is is not saving?
What's the error that is returned? Is it HTTP or JS?

Also, take a look at this thread:
signalpoint/angular-drupal#31

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

No branches or pull requests

2 participants