Questions tagged [form]

A web form, also called html form, is a special html element consisting of several input elements, that allows the users to enter and send data to the server. One of the most common type of forms are the contact forms in websites.

Filter by
Sorted by
Tagged with
0
votes
1answer
178 views

Using a custom field with different names

I want to use a flexible field name for a field across different forms thru my extension. My custom example field looks like this: defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\...
0
votes
1answer
60 views

handling simple module form

I'm new in joomla, I created a module for learning purpose, let name it mod_form1, I don't know what framework or class in joomla i should use for this so I use plain HTML. this is my tmpl/default.php ...
1
vote
1answer
54 views

Contact Form Non Unique id #jform_id

Joomla 3.9.14 When I open a contact to edit their details and look in the browser console I can see the following notice; [DOM] Found 2 elements with non-unique id #jform_id: (More info: https://...
0
votes
1answer
58 views

Joomla post requests

I'm trying to make an android application and so i want to connect it directly to my Joomla website, i want to send some post requests but they are getting denied, I'm not asking for any help ...
1
vote
1answer
37 views

Pop up AcyMailing subscription form

I am trying to build a Joomla website with an AcyMailing subscription form. I'd like the form to be a pop-up window. I have researched thoroughly and I have achieved most of what I want. Now I have a ...
1
vote
0answers
16 views

Fabrik security issue: input tag attributes expose database table prefix

In the generated HTML for the input field, the id and name attributes shows the Joomla database table prefix. Exposing the database prefix is a security concern. Is there a way to prevent this? <...
2
votes
1answer
91 views

Update List field rendering after ajax update

for one of my extensions i need to update a select list by ajax. the whole ajax call is working and i got the new option vars for the select list. I add those options in the ajax's "success" function ...
2
votes
2answers
45 views

Js/Ajax function into a Js file doesn't work

I'm not a programmer (This is my hobby, but I like to learn new things). :) I'm developing a JComponent on my side, and I need to integrate an Ajax Call in order to check something. But I have this ...
1
vote
1answer
45 views

Error “Uncaught TypeError: Cannot set property 'value' of undefined” on submit form

I'm getting the following error when trying to submit a form using Joomla.submitbutton('book.submit') The error I get is: Uncaught TypeError: Cannot set property 'value' of undefined at Object....
0
votes
0answers
41 views

Form only posts regular HTML inputs (not posting XML fields)

I have a form (with XML fields) and it posts only the hidden fields type and other regular HTML inputs. It doesn't post the XML form. My form <form action="<?php echo JUri::base().'getpost'; ?&...
0
votes
0answers
31 views

Submit an XML form via AJAX using Joomla.submitbutton/form

I know there are a few questions regarding how to submit forms with AJAX but i could not figure out how to do it in my case. Should it be something like this? $("#adminForm" ).submit(function( ...
0
votes
1answer
71 views

Cannot extend my custom component's validation rules — does not validate

I'm following along with this tutorial https://docs.joomla.org/J3.x:Server-side_form_validation My form <form> <fieldset name="form_name" addrulepath="components/com_mycomponent/models/...
0
votes
0answers
30 views

Display a form and post it to dabase

I want to insert a form in a default.php file and post it to the database. How should it be done? By adding an XML form or creating a regular HTML form and posting it to the database through a ...
0
votes
0answers
15 views

“Error” when developing an MVC Component In Joomla

I'm getting an error when trying to create an MVC Component, as shows here: https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/Adding_a_front-end_form But the problem is ...
1
vote
1answer
42 views

Is there an easy way to build a form in Joomla that stores the currently logged in user's name?

I have a form created with the breezingForms extension for Joomla. I'd like to store the currently logged in user's name with the form. I don't need to continue to use the same extension. However, ...
3
votes
1answer
160 views

User Registration Assign to Specific Group

Joomla 3.9.14 I have a URL example.com/training/register, this displays a default Joomla user registration form. Within Joomla I have various user groups; - Guest - Registered - - Training - - ...
0
votes
2answers
336 views

Convert article to PDF?

I was wondering if anyone knows of any way to take the HTML content of a custom module which is placed inside an article and convert the HTML to PDF via the click of a button or so. So basically the ...
0
votes
0answers
51 views

Joomla datepicker field issue

Can someone help please? I'm working on a simple component which displays events. The component allows events to be submitted from the frontend. The form uses the Joomla datepicker. The problem I'...
2
votes
1answer
63 views

How to develop a survey extension which prevents respondents from taking a survey more than once?

I'm looking for advice on how to make a survey for my Joomla production (3.6.4) site. A key requirement is to restrict respondents to only taking the survey once (i.e. preventing 'ballot-box' ...
3
votes
2answers
1k views

Joomla CSRF form validation

I have noticed this happen occasionally with a component I am working on. I use JHtml::_('form.token') in the form and JSession::checkToken() or die('Invalid Token') to check it once i receive the ...
1
vote
0answers
39 views

How does com_contact caching work when it has a form token?

I've been looking into conservative caching recently and felt I'd got my head around it. However, when I added it to a site, I was surprised to see that the core component com_content caches forms. ...
6
votes
1answer
2k views

Joomla token with ajax request

I've built a module that requests some data from the server via an ajax request. It includes the Joomla token to validate the session. An odd thing is happening-- when I open Chrome and load the page,...
3
votes
2answers
303 views

How can I change the Class of SELECT fields that Joomla generates'

I've disable chosen.js so that all my <select> tags are plain HTML, but am so far unable to change the default class of inputbox to one of my choosing, (specificially from the Search Tools ...
1
vote
1answer
152 views

Form inside a backend component redirects me to index page

I got the function addNew() that creates a form inside a backend component. function addNew() { $route= JRoute::_( 'index.php?option=com_pelatol&task=insertyo'); $html.='<form action=...
2
votes
2answers
2k views

Preprocessing form data before saving to the database

I have a series of checkboxes on my form that together form an array when POST'ed. I want to save this data as a string instead (e.g., "##,##,##") before committing to the database. Here's what I ...
2
votes
1answer
1k views

Create form in frontend in a module

Am creating a simple custom search , where users will search using a droplist of option , i have successfully created the module , however i do not know how to show the form in frontend and how to ...
1
vote
1answer
177 views

JFormFieldList in Frontend -> Notice: Array to string conversion

I'm facing a strange problem. I'm trying to define a custom field for the frontend-view of my component like this: defined('JPATH_BASE') or die; jimport('joomla.form.formfield'); jimport('joomla....
3
votes
1answer
1k views

Populate multi select data into the custom list field of form inside user management

I am trying to populate multi selected data on to the user management form below the name field of the user. Here is what I have added inside the form, in order to display multi selected data from db....
0
votes
2answers
57 views

How to bypass deny direct access to edit link

I managed to edit a file in controller to allow for the edit article link to be directly accessed if a user has a particular username. This is a core edit, but it's a local website only only my pc so ...
0
votes
1answer
68 views

Associate template to getMailer class

I have created a custom form, after submit send email to recipient with JFactory::getMailer With this class can add body, for example: $mailer = JFactory::getMailer(); $mailer->addRecipient('test-...
3
votes
2answers
51 views

Form with nested set dropdown

I have to write front-end form in my component with dropdown list of categories and subcategories. Categories and subcategories amount should be unlimited. Should I use a nested sets model to do that?
0
votes
2answers
2k views

Editing the Joomla Login Form

I had installed a template from joomshaper. I'm trying to edit the login form of it. I already try to overwrite the mod_login/.../default.html file, but the form used by the template is not being ...
0
votes
1answer
106 views

Joomla editor field type text not posted when submitted

I'm working on a custom joomla module. It has a form with an "editor" type field. The fields are defined in the related xml file: <form> <fields name="main"> <fieldset name=...
1
vote
1answer
466 views

Custom dynamic fields - SimpleXMLElement in model and data info fields

Good morning, I have a question. I create my own fields in my own component. I'm using the "SimpleXMLElement" class. The form generates via getForm work perfectly: $newfieldset = new ...
1
vote
0answers
71 views

Variables in XML form definition

I'm creating a form using the Joomla XML form definition, and I want to create a range of integer values a user can select from. The number/integer field is fine for this use-- but I need to allow the ...
0
votes
1answer
201 views

Get ajax post data from another module in plugin

is it possible to catch ajax post data from another module in my plugin? I'm using SimpleForm2 https://allforjoomla.ru/extensions/mod-simpleform2 So this module creates a form and pass post data via ...
1
vote
1answer
32 views

Joomla 3 - Text area in Editor field breaks the Admin section

I have an editor field with some HTML code in it. The HTML code consists of a form and one of the form fields is a text area. When this code is added to the editor field, the Admin section of the ...
1
vote
1answer
531 views

How to make form action to work?

I'm learning how to make my own module on Joomla. MyModule mod_planejamentomensal.php is like this: //No direct access defined('_JEXEC') or die; require_once dirname(__FILE__) . '/helper.php'; ...
0
votes
1answer
165 views

How to access user-submitted values from a dynamic form?

I want to insert a row in my db-table with inputs from users. The form the users fill out is made with a foreach-loop: foreach ($results as $row) { echo '<div class="vm_kampe"><input ...
1
vote
2answers
485 views

Save multiple list custom field for component

I 've created a custom form field type class JFormFieldCategories extends JFormFieldList { protected $type = 'categories'; public function getOptions() { $db = JFactory::getDBO(); $...
1
vote
1answer
77 views

Don't add empty fields to database after submission?

Is there any PHP code which will allow me to NOT submit any empty fields to the database. I have a form with about 200 fields, and a lot of the times many of them are empty. How can I not add the ...
1
vote
1answer
656 views

Assign user to a specific group based on custom field selected

I'd like to assign a user to a custom group instead a some standard Joomla group, based on a dropdown choice. I've created a user group named "students". Then I added a new custom custom field for ...
0
votes
1answer
28 views

How can I make it pssible for users to login and add their products?

I want to build a form for the users of my website to let them easily add their products in frontend page under the name of their shop. To this end, which plug-in, component, or extension ...
0
votes
1answer
35 views

Component/software recommendation?

I want to know if you guys know of any good components or extensions which can perform the following: I want a user to be able to submit a form, view this form and edit it when they require. Every ...
0
votes
1answer
687 views

How can I save multiple dynamic values using check boxes?

I have a form which fetches and displays data from two databases (sessions, students) and allows a curriculum manager to select different combinations of students and classes by clicking check boxes. ...
1
vote
0answers
85 views

Joomla Calendar for versions >3.7

I'm trying to get a calendar form field to display without using XML. For previous versions, I called JHTML::_('behavior.calendar') and initialized it with Calendar.setup({args}) that would pass ...
1
vote
0answers
12 views

Change possition on Registration form of extra fiels added to users

I have added an extra field for membership number to Users but I cannot see how to specify where the field is displayed on the registration form. It comes as a separate section at the end after the ...
1
vote
1answer
685 views

What controller does front end form data post to using a component

I have been using Joomla for the last couple weeks and it seems straightforward so far and I understand the code in examples. I've successfully created a custom module that displays on the front end. ...
1
vote
3answers
618 views

joomla loadFormData

I am new in Joomla component development. I have used this document to develop the component. In this document there is a function loadFormData in Helloworld model as below: protected function ...
1
vote
2answers
603 views

Joomla 3.7 change value in database after form button press

I want to do something really simple, but have to use Joomla what makes it probably complicated because I have less experience in Joomla development. I have field with a value (a number) which is ...