Forum Post: RE: Create Record from Portal Pages

  • Thread starter Thread starter Orchid Corpin
  • Start date Start date
Status
Not open for further replies.
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...
 
Status
Not open for further replies.
Back
Top