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
27 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
15 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
36 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
41 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
23 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
40 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
26 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
67 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
28 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 ...
0
votes
1answer
52 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
38 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, ...
2
votes
1answer
97 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
0answers
47 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'...
1
vote
1answer
45 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://...
4
votes
0answers
155 views

Custom Fields Issues Saving - Video Included

Joomla 3.9.13 PHP version: 7.3.9 Mysql Ver 15.1 Distrib 10.4.6-MariaDB I am using the default Joomla contacts component, with no changes or overrides. I have configured a number of custom fields ...
0
votes
0answers
14 views

Translation file for Contact form module in French?

In my Joomla website, I'm using the module type "Perfect AJAX Popup Contact Form": The problem is that my website is multilingual, and a translation in French doesn't seem to be available. No when ...
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
168 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
66 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-...
0
votes
1answer
104 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
0answers
66 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 ...
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
489 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
160 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 ...
0
votes
2answers
311 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 ...
1
vote
1answer
75 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 ...
0
votes
1answer
633 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
27 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 ...
3
votes
2answers
260 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 ...
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
598 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 ...
0
votes
1answer
187 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 ...
3
votes
2answers
50 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?
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
2answers
454 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
661 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
1answer
439 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
2answers
587 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 ...
1
vote
1answer
76 views

Overriding layouts from your module

I have already copied the renderfield.php and renderlabel.php files from ~/layouts/joomla/form/ to ~/modules/mod_mymodule/layouts/joomla/form but the overrides don't seem to be recognised. I have ...
2
votes
1answer
656 views

Is it possible to render the same fieldset multiple times?

I'd like to render the same fieldset multiple times for batch create and batch update. Is it possible to do this with JForms? Currently I have a form like this: <?xml version="1.0" encoding="UTF-...
1
vote
1answer
594 views

Server side form validation always returns true

I am trying to validate the input of my form on server side, but I always get true from the validator. What am I doing wrong? .../templates/customer_registration.xml <?xml version="1.0" encoding="...
1
vote
2answers
74 views

what component allows me to open a Virtual tour in a popup? [duplicate]

I'm trying to create a popup by modifying the source code through the editor. the code is as follows: <a href="#" onClick="window.open('mypage.htm','pagename','resizable,height=260,width=370'); ...
1
vote
3answers
589 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 ...
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
1answer
57 views

How to to create a multi-layered form system

I am new to Joomla and I am trying to create a form system whose questions will change depending on what was previously answered. The idea is to store this data into a database and allow other users ...
1
vote
1answer
204 views

XML form related fields

I need to make a form with dependent fields. I have already tried a lot of options, but have not found the right way. As in the picture below, I'm trying to load a new XML file when you select an ...
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 ...
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. ...