Comments (5)
Hi @hellsan631,
Could you please share code spinet, So I can check and assist you to fix the issue.
from javascript-api.
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.
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.
thanks
from javascript-api.
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.
It also happens in React, thanks @hellsan631, I used the same approach to resolve in my situation.
from javascript-api.
Related Issues (20)
- set_property callback error HOT 1
- create_company disappeared HOT 1
- Generated code is not versioned HOT 1
- Custom contact field object key HOT 1
- Option to set contact, deal or task owner HOT 5
- Using _agile.set_email() doesn't seem to backtrack web visits HOT 2
- api url points to localhost:8888 HOT 3
- How do I create a ticket? HOT 1
- api url points to localhost:8888 HOT 3
- Analytics Code Not Working in Safari & Firefox
- add_deal returning 204 (no response data) and not creating the deal HOT 6
- SSL will be distrusted
- how to create campaign using add_campaign() function HOT 2
- custom widget image
- Add endpoint to create a ticket for the user and start it with a note
- JS API validation treats email field with + as invalid HOT 1
- Does this work with NodeJS? HOT 1
- Add Note is not working HOT 2
- API for webrules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascript-api.