• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

JSON response possible for blog comment submissions?

Guest
Feb 10, 2016 Feb 10, 2016

Copy link to clipboard

Copied

Hi,

I have created a blog from BC. I am trying to customize its "Blog Post Details Layout" so as to allow for comment submission using Ajax and JSON.

I have already successfully done this for other standard web forms in the site. However things seem to be working differently BC's comment submission form. I am using this as guide -

http://docs.businesscatalyst.com/user-manual/CRM/web-forms/submitting-standard-web-forms-with-ajax-a...

As per the guide, JSON response is supposed to come into "msg" variable in the code section -

success: function(msg){....}

However, I have discovered that instead of JSON, the "msg" variable fetches the whole HTML code of comment submission confirmation system page. Therefore this then screws up the rest of the Ajax/JSON comment submission. What can I do here?

  • Is it possible to enforce JSON response for comments submissions?
  • Can I just extract system message from "msg" variable and make use of it display Ajax confirmation message on my page?

Thanks!

TOPICS
Content management and modules , Newbie Corner

Views

286

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 10, 2016 Feb 10, 2016

Only the custom web forms support that JSON response properly in BC.

Votes

Translate

Translate
LEGEND ,
Feb 10, 2016 Feb 10, 2016

Copy link to clipboard

Copied

Only the custom web forms support that JSON response properly in BC.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 11, 2016 Feb 11, 2016

Copy link to clipboard

Copied

LATEST

Thanks for confirmation, Liam! I will then stick with normal submission for now.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines