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 (Moderator: Dave Greenberg) »
  • How to edit sic code?
Pages: [1]

Author Topic: How to edit sic code?  (Read 436 times)

AlexM

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress
  • MySQL version: -
  • PHP version: -
How to edit sic code?
April 16, 2014, 01:46:48 am
Hi all,

This is my first post in CiviCRM forums, and my problem is that:

I want to change the size and maxlength of the input sic_code (New organization form).

If some one could show me where i could change these values, i'll be so happy.

//edit

Well i found where CiviCRM calls the fields, and now i've to know where are the attributes saved to change.

//edit2

I build a script:

$("input[name=sic_code]").attr("size", "9");
$("input[name=sic_code]").attr("maxlength", "9");

to change these attributes, but isnt works at CivirCRM.

//edit3

i found that with: &smartyDebug=1

$form

sic_code => Array (9)
  name => "sic_code"
  value => null
  type => "text"
  frozen => false
  required => false
  error => null
  id => "sic_code"
  label => "<label for="sic_code">CIF</label>"
  html => "<input maxlength="8" size="8" name="s..."

Someone could help me?

Thanks you all.
« Last Edit: April 16, 2014, 09:08:20 am by AlexM »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to edit sic code?
April 16, 2014, 09:45:30 am

can you do your changes interactively via firebug and see what works?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

AlexM

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress
  • MySQL version: -
  • PHP version: -
Re: How to edit sic code?
April 16, 2014, 10:11:42 am
Hey, first thanks u so much for reply,

I was trying but it didnt works.

I changed the value of the field sic_code at database (Because i thought that maybe these attributes takes the value of the database but i was wrong, it still beeing 8)

I want to know where i can change these attributes (size and maxlength) or where file contains the array of the values or where is the template that CiviCRM shows you when you try to create a new organization.

I'm not sure if i'm explaining correctly >.<

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • How to edit sic code?

This forum was archived on 2017-11-26.