O
Orchid Corpin
Guest
Hi, First can you make sure that the portal has enabled AJAX Calls. If the page required login portal visitor then check "for authenticated portal visitors" if the page is viewable by anyone then check "for non-authenticated portal visitors". In your code, "rbv_api.print("Created record with id: "+newId);" will cause an error, this is a server-side API and cannot run in portal pages, you can use console.log() instead. Here are some code revisions: script function my_callback(arr) { //output the new record's ID console.log("NEW ID: "+arr); } var x = new Array(); x["name"]="API Created"; rbf_createRecord("objIntName", x, true, my_callback); /script Hope this will help. Regards, Orchid
Continue reading...
Continue reading...