Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9239769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:03:50+00:00 2026-06-18T08:03:50+00:00

Hi guys I am developing custom form field type in Joomla 2.5/3 . But

  • 0

Hi guys I am developing custom form field type in Joomla 2.5/3 . But my code doesn’t work, I mean when I press on it, it doesn’t show message and also it has a different ID. here my code:

{module}/elements/testfield.php

<?php

/**
 * @copyright   Copyright (C) 2011 Cedric KEIFLIN alias ced1870
 * http://www.joomlack.fr
 * @license     GNU/GPL
 * */
// no direct access
defined('_JEXEC') or die('Restricted access');

class JFormFieldTestfield extends JFormField {

    protected $type = 'testfield';

    protected function getInput() {
        $document = JFactory::getDocument();
        $html = '<input name="' . $this->name . '" id="xxxfffaaa" value="' . $this->value . '" onclick="" />';
        return $html;
    }

    protected function getLabel() {
    }

}

*

{module}/{module_name}.xml

...     
<fields name="params">
            <fieldset name="basic">

                ....
                <field name="blablaname" type="testfield" label="this is label"/>

            </fieldset>
        </fields>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:03:51+00:00Added an answer on June 18, 2026 at 8:03 am

    You need to add the following code to the fields tag

    addfieldpath="modules/mod_mymodule/elements"
    

    so your code will look like this:

    <fields name="params" addfieldpath="modules/mod_mymodule/elements">
        <fieldset name="basic">
            <field name="blablaname" type="testfield" label="this is label"/>
        </fieldset>
    </fields>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi guys I'm developing a Restful + JSON servlet, but I got a strange
H guys. I'm developing a custom component for SSIS. I'm having a problem when
So we are a few guys developing this product that is communicating with a
Hi guys I'm trying to keep developing SMS popup under the name of SMS
I guys, I developing a utility in python and i have 2 object the
i have another piece for more advanced guys than me ;) I am developing
guys, I would like to you evaluate next code below. As you see, I
Ok guys I am developing an iPhone app I have a Model class which
guys i'm still new on developing system and I've encountered this This is the
guys. I'm developing iphone app. so, I want to read database of iphone calendar.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.