Giter Site home page Giter Site logo

Comments (5)

graut avatar graut commented on July 25, 2024

Hi @hellsan631,

Could you please share code spinet, So I can check and assist you to fix the issue.

from javascript-api.

graut avatar graut commented on July 25, 2024

Hi @hellsan631,

Please check below link which has sample form example which will work with your JS API information.

https://github.com/agilecrm/javascript-api/blob/master/create_contact.html

Please follow step as below -

1 . Keep Agile CRM API analysis code and javascript code just above
2. keep _agile.create_contact method inside some function and call that, It would help you to modify code in future.

Please test in local and production and let me know.

Thanks

from javascript-api.

graut avatar graut commented on July 25, 2024

Hi @hellsan631,

I am removing your code from git hub as it contain some security information. Please mail me same at below mail ID, I will assist you through mail.

[email protected]

thanks

from javascript-api.

hellsan631 avatar hellsan631 commented on July 25, 2024

So it seems that this happens only in angular (which is where the tags need to be set). Even when I move it out into a global variable, im still getting this error. the error is caused because its trying to reach a localhost api.

It looks like there was a problem with the on_after_load function not being called, and I had to set the account again inside of the angular factory

(function() {
  angular.module('app').run(() => {

    // had to set this again here
    _agile.set_account('your_js_key', 'namespace'); 

    _agile.set_email('[email protected]');

    _agile.update_contact({
      tags: tags
    });
  });

})();

Its working now

from javascript-api.

shjacobs303 avatar shjacobs303 commented on July 25, 2024

It also happens in React, thanks @hellsan631, I used the same approach to resolve in my situation.

from javascript-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.