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 Joomla Extensions (Moderator: lcdweb) »
  • Alter html output for a profile form
Pages: [1]

Author Topic: Alter html output for a profile form  (Read 2792 times)

atsocj

  • Guest
Alter html output for a profile form
July 18, 2010, 08:42:28 am
Does anyone know how to alter the html that's generated by civi profile forms?

Basically everything is working perfectly, I'm just trying to place a sign-up form in a modal pop-up that appears when someone first visits the site.  The form itself works fine but I need to add target="_top" to the form tag or else submitting the form keeps the user within the modal pop-up window when they're redirected to the homepage. 

So, basically this:
<form  action="http://www. example.com/index.php?option=com_civicrm&amp;task=civicrm/profile/edit&amp;gid=4&amp;reset=1&amp;" method="post" name="Edit" id="Edit" >

Needs to be changed to this:
<form  action="http://www. example.com/index.php?option=com_civicrm&amp;task=civicrm/profile/edit&amp;gid=4&amp;reset=1&amp;" method="post" name="Edit" id="Edit" target="_top">

If anyone knows how this can be accomplished within civi or joomla your advice would be much appreciated.  (And don't worry, there are no spaces in the real urls; the site just isn't live yet so I can't provide the real links). 

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Alter html output for a profile form
July 18, 2010, 07:00:34 pm
http://wiki.civicrm.org/confluence/display/CRMDOC/Customizing+CiviCRM+Screens

however, the form action is probably handled in the code, not the template. i'd look in: CRM/Profile/Form/Edit.php
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Alter html output for a profile form
July 18, 2010, 08:09:11 pm
You could use the Profile -> HTML Snippet option which gives you the complete HTML code for the form which you can paste into a static HTML document (after modifying the form target). Go to Administer > Customize > CiviCRM Profile and click the >more option in that Profile's row.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Alter html output for a profile form

This forum was archived on 2017-11-26.