Skip to main content
The 2024 Developer Survey results are live! See the results

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
1 answer
20 views

Breezing Forms reCAPTCHA doesn't display with JCH enabled - how to fix?

A combination of JCH Optimize combining of JS files and moving them to the bottom and Breezing Forms with reCAPTCHA enabled results in invisible captcha, inability to send the form and No reCAPTCHA ...
Destroy666's user avatar
0 votes
1 answer
9 views

Breezing Forms - go to top of form, not page

The current behavior is that it goes to the top of the page when you change the page: https://lenkraddesign.eu/oferta/kierownice-samochodow-osobowych Is there any way to make it scroll to the top of ...
Destroy666's user avatar
1 vote
1 answer
18 views

Breezing Forms - conditionals based on labels/values in custom mails

Is there any way to add conditions to custom mails in Breezing Forms? Documentation doesn't show anything like that. So if values are empty, the HTML gets messed up with blanks. I'd like to do e.g.: {...
Destroy666's user avatar
1 vote
1 answer
15 views

Breezing Forms - how to include Summarize type of field in custom emails?

Pretty sure this is impossible, but maybe not. I'm using Summarize type of field with totalCost name. It's calculated with custom value based on lots of fields summed up with JS. I tried to use {...
Destroy666's user avatar
0 votes
1 answer
31 views

Is it possible to dynamically set fields on subforms

If I have a subform with the following xml structure <?xml version="1.0" encoding="utf-8"?> <form> <fieldset name="advkontentuser" > ...
James Wadsworth's user avatar
0 votes
2 answers
86 views

Set field attributes on joomla 4 subform field

Is it possible to set the field attributes on joomla 4 subform fields? <?xml version="1.0" encoding="utf-8"?> <form> <fieldset name="...
James Wadsworth's user avatar
0 votes
1 answer
32 views

Is it possible to duplicate a fieldset in joomla form

I have a system plugin that uses the onContentPrepareForm event to load an xml form fieldset definition into the Joomal CMS Form Object. FormHelper::addFieldPrefix('DeAnima\\Plugin\\System\\...
James Wadsworth's user avatar
0 votes
2 answers
98 views

Create Custom Form via SimpleXMLElement

I need to create a custom form which generates an input / text field foreach position that is stored in the database. My Code for this field so far: private function buildSubForm(array $positions) ...
Marco's user avatar
  • 685
2 votes
0 answers
55 views

Disable single option in list-fancy-select

When using a custom select list field i can disable single options in it by setting an attribute. Here a simple version: <field name="somefield" type="mylist" label="...
maidan's user avatar
  • 453
0 votes
2 answers
130 views

Get the form fields as defined in the form xml file

I have a set of fields that have been defined in an xml file and then I load the fields with $form->loadFile('myFormName'). Before displaying the fields I would like to manipulate the fields based ...
James Wadsworth's user avatar
0 votes
1 answer
26 views

Custom Rule (checked) for ClientSide Validation

I have a Form that includes two radio inputs both based on this field structure: <field name="privacy_policy" type="radio" layout="joomla.form.field.radio.switcher"...
Marco's user avatar
  • 685
0 votes
1 answer
40 views

how to extract data from joomla website into csv file

Users enroll for courses on my website. I want to know how to extract that information into a flat file (csv file)
Olivia Jonah's user avatar
0 votes
1 answer
118 views

Cannot access form in Joomla 4 frontend

In Joomla 4.3.4 I have created a menu item Create Article for a specific category. When I try to create a new Article and enter the edit view, I get the following error: 0 htmlspecialchars(): Argument ...
cappu's user avatar
  • 139
0 votes
0 answers
29 views

formsource only in subform field type?

So i need an XML form structure for a custom app that is used in different models. The most logical approach would be to create an external XML form file containing that structure and include it in ...
maidan's user avatar
  • 453
1 vote
1 answer
99 views

Changing plugin parameter field value dynamicaly

I have a plugin which needs to change its parameter configuration depending on some conditions upon configuring in backend. The plugin using the SubscriberInterface because it is listening to some ...
maidan's user avatar
  • 453
1 vote
1 answer
31 views

Display only one Category and its sub-categories

I have created a custom filter.xml to search for specific documents. Using Joomla's category system, I have also create 3 main categories. Courtrolls, Newsletter and communique. In my filter form, I ...
DeesreX's user avatar
  • 87
3 votes
1 answer
79 views

Prefill subform with data rows

Im trying to prefill my subform with datarows from the database. newcustomerform.xml <?xml version="1.0" encoding="utf-8"?> <form addfieldprefix="Mydestiny\Component\...
Jbadminton's user avatar
0 votes
1 answer
101 views

Free Joomla extension that can read and write in a MySQLi database, with sanitization

I am working on a website I volounteered to do for free (because it's for an organization I'm part of, and because it will make our lives easy). Our budget is "as low as possible", ideally 0,...
Zachiel's user avatar
  • 131
3 votes
1 answer
329 views

Is the following everything one should do to prevent SQL injection?

In order to sanitize the user input in an article insertion form (title and HTML content), here are the bits that I've included: Use of JInput: $jinput = JFactory::getApplication()->input; get ...
Vincenzo Oliva's user avatar
2 votes
2 answers
576 views

Custom multiselect field not working in J4

In my Joomla 3 component, i have a custom field that is a select list with multiple=true. The values of such an select list are binary handled like 1,2,4,8,16. When storing, the values are getting ...
maidan's user avatar
  • 453
2 votes
2 answers
219 views

Component/module for registering to get document

I'm looking for a way to have users register their email and then get sent a document, like you often see on sites offering white papers. I've looked at many of the download extensions on the JED but ...
thoni56's user avatar
  • 277
0 votes
1 answer
181 views

Manually render Clear form button in layout

I followed instructions here and I render some fields in my front end view, like this: echo $this->filterForm->renderField('search', 'filter'); Now I wonder how to manually add a clear button. ...
framontb's user avatar
  • 247
1 vote
1 answer
253 views

Where do I add php code to submit an HTML form?

I am new to Joomla, and so far, I used the basics to make a simple website. I decided to try out making a component, using JCB, that has a database of a list of items, and for each item, there is a ...
shaded's user avatar
  • 11
0 votes
0 answers
45 views

Manipulate values of form before sending

A customer of mine has a Joomla website with several forms. When submitting these forms an email is sent to my customer with the content. Unfortunately the preset values ("value if empty") ...
NicolasB's user avatar
  • 101
2 votes
1 answer
938 views

How to override a form field in Joomla 4

I have the following field in my module's XML: <field addfieldpath="/modules/mod_xxxxxx/fields" name="icon" type="filelist" label="Icon" />...
Lodder's user avatar
  • 26.9k
0 votes
1 answer
78 views

Getting object value from form fields

when i do a var dump of ($fields), i get this. i am trying to get the object element => @attributes => article protected 'autofocus' => boolean false protected 'element' => object(...
Kannan Naidu's user avatar
0 votes
1 answer
171 views

loadForm change behaviour from J!3.9 to J!4.0 and data not loaded with the form

In my component in a model backend, I'm loading a form but since moving the code to be used on J!4.0 the data associated to the form isn't loaded anymore. The loadForm is called: https://github.com/...
user3533235's user avatar
0 votes
1 answer
85 views

Dynamic Form based on Signed in User

I am a total noob in coding. Back in engineering school we had some coding classes and I was good at it but I never really focused on that. I know some python and c# and that is about it. I have a ...
CeDe's user avatar
  • 1
1 vote
1 answer
38 views

Should language file definitions/translations be used by multiple forms with the same text?

If you have a set of forms and some of the same fields are used on each form, do you create a language definition for each form's version of the field or just create a definition for the field? For ...
mfleeson's user avatar
  • 128
0 votes
0 answers
29 views

When I save form data on a Joomla site to the database, Joomla logs me out

I am trying to make a Joomla-based warranty registration system. Recently, I was able to turn on the possibility of registering new users and logging them in. Only registered/logged-in users will be ...
Adrian's user avatar
  • 1
1 vote
0 answers
30 views

Form With Buttons That Don't Submit Data

I am trying to make a page that performs various functions in vanilla Javascript. One of the functions involves submitting form data to Joomla. However the issue I have is that Following the following ...
Huw Evans's user avatar
  • 371
2 votes
1 answer
335 views

custom form list field add disabled options - create optgroups

I have a working list based on an sql query. Now I would like to add some spacers (not selectable items). When doing this manually in xml you can add the disabled attr to that item, but how can I do ...
Marco's user avatar
  • 685
1 vote
2 answers
224 views

Access parent field value out of subform

I made a custom field and using it in a subform looking somewhat like this: <config> <fields name="params"> <fieldset name="basic" addfieldpath="/...
Mike's user avatar
  • 351
0 votes
1 answer
222 views

Reload Item View with a Button and send a variable to the session

I try to add the possibility to my component to unlock content within the component item view. If you watch the item view page, you see a description and an image and a little button. If you click the ...
Lord Razen's user avatar
1 vote
2 answers
812 views

How to dynamically reload admin-form-fields in Joomla

In a custom component, I'm developing an admin form with 2 fields, a combo-box for jobTitles and checkboxes for technologies. Both fields are loaded from a database table. The values of the checkbox ...
Stefan Anders's user avatar
1 vote
1 answer
355 views

How adjust "Maximum upload size" indicator for file upload?

Joomla prints a short notice regarding the Maximum upload size when including a file upload field with the standard form field file, see code and image below: <field name="image" ...
jost21's user avatar
  • 239
1 vote
1 answer
111 views

Save/load a custom form inside a new tab in the article edit view

I have a plugin which loads a custom form in a new tab inside the article edit view. So far, no problem with this part: public function onContentPrepareForm(Form $form, $data) { // Check we are ...
Carlitorweb's user avatar
0 votes
2 answers
203 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 ...
dhany saguntoro's user avatar
1 vote
1 answer
245 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 ...
ygiorgos's user avatar
1 vote
0 answers
24 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? <...
Kailash Singh's user avatar
2 votes
1 answer
1k 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 ...
Marco's user avatar
  • 685
2 votes
2 answers
1k 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 ...
Andrea Suriani's user avatar
1 vote
1 answer
2k 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....
Thiago Guimarães's user avatar
0 votes
0 answers
47 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'; ?&...
Thiago Guimarães's user avatar
0 votes
0 answers
141 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( ...
Thiago Guimarães's user avatar
0 votes
1 answer
172 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/...
Thiago Guimarães's user avatar
0 votes
0 answers
38 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 ...
Thiago Guimarães's user avatar
0 votes
1 answer
313 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 ...
user71381's user avatar
2 votes
1 answer
64 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, ...
Tom Resing's user avatar
3 votes
1 answer
875 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 - - ...
jonboy's user avatar
  • 3,613