CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • "HTML Form Snippet" generates invalid code....
Pages: [1]

Author Topic: "HTML Form Snippet" generates invalid code....  (Read 1933 times)

TheEdge

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.3.4
  • MySQL version: 5.6.17
  • PHP version: 5.4.32
"HTML Form Snippet" generates invalid code....
January 27, 2012, 02:42:03 am
Hi,

- J! 1.7.3, Civi 4.0.7

When you generate the necessary embed code for a profile form that can be used anywhere the form action URL is to the /administrator URL. The action URL should be to the front end otherwise embedding it becomes problematic when you have an invalid form as the resulting page with the errors highlighted ends up in the back end. It is feasible to have all the resources refer to the /administrator URL but not the actual form action URL.

Consequently I cannot use the embed code generated. Aside from hand editing the generated HTML is there any other work around?

PS. As mentioned in previous posts having JS resources etc being accessed from /administrator is problematic if the back end is protected by .htaccess or J! plugins requiring a token to allow access to /administrator. I hope in 4.1 that resources are now referred to from the front end URL

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: "HTML Form Snippet" generates invalid code....
January 27, 2012, 11:26:55 am
Check on joomla demo and action url seems right to me,
Quote
<form  action="http://joomla.demo.civicrm.org/index.php?option=com_civicrm&amp;task=civicrm/profile/create&amp;gid=1&amp;reset=1" method="post" name="Edit" id="Edit" >
check http://joomla.demo.civicrm.org/administrator/index2.php?option=com_civicrm&task=civicrm/admin/uf/group&action=profile&gid=1

Kurund

Found this reply helpful? Support CiviCRM

TheEdge

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.3.4
  • MySQL version: 5.6.17
  • PHP version: 5.4.32
Re: "HTML Form Snippet" generates invalid code....
January 28, 2012, 09:30:50 pm
Quote from: Kurund Jalmi on January 27, 2012, 11:26:55 am
Check on joomla demo and action url seems right to me,
Quote
<form  action="http://joomla.demo.civicrm.org/index.php?option=com_civicrm&amp;task=civicrm/profile/create&amp;gid=1&amp;reset=1" method="post" name="Edit" id="Edit" >
check http://joomla.demo.civicrm.org/administrator/index2.php?option=com_civicrm&task=civicrm/admin/uf/group&action=profile&gid=1

Kurund
I agree. But that is not a valid test as it is CiviCRM 3.x on J! 1.5. I am running CiviCRM 4.0.7 and J! 1.7.x. Can anyone do a test on Civi 4.0 at a minimum and see if they can reproduce?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: "HTML Form Snippet" generates invalid code....
January 29, 2012, 01:15:13 am
Quote
Can anyone do a test on Civi 4.0 at a minimum and see if they can reproduce?
This looks like a bug , please file a bug report in issue tracker.

Kurund
Found this reply helpful? Support CiviCRM

TheEdge

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.3.4
  • MySQL version: 5.6.17
  • PHP version: 5.4.32
Re: "HTML Form Snippet" generates invalid code....
January 29, 2012, 01:37:54 am
Logged as http://issues.civicrm.org/jira/browse/CRM-9564

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • "HTML Form Snippet" generates invalid code....

This forum was archived on 2017-11-26.