jDrupal icon indicating copy to clipboard operation
jDrupal copied to clipboard

Edit user fields - Drupal 8

Open pure4Sk opened this issue 9 years ago • 1 comments

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 avatar May 15 '16 14:05 pure4Sk

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: https://github.com/easystreet3/angular-drupal/issues/31

e2o avatar May 20 '16 08:05 e2o