Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
209 views

Submit a view instead of redirect to another view

I have 2 views namely students and student. The students view will list all the students and student view is to show the details of the student. These 2 views are accessible for all staffs in the ...
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
0answers
132 views

Upload form to upload files and filter the public view based on category

I am looking for an extension or a way to allow users to upload their documents based on the category e.g. a User will upload food recipe document (pdf/doc) in the category of "Chinese" or "Maxican"....
1
vote
0answers
423 views

reCaptcha 1.0 works but 2.0 won't?

I'm on Joomla 3.4.3, PHP 5.4.40 and using reCaptcha for the contact form. Whenever I use reCaptcha 1.0 everything works as intended. If I use reCaptcha 2.0 it's like this: I fill the contact form, ...
1
vote
1answer
354 views

Let JForm-Fields be dependent on eachother

I would like to solve this problem: I got some Fields in my Form. Some are Combo-Boxes, Radio Buttons, Text-Inputs and so on. Now I would like to do the following: If Radio-Button 1 has value 1, ...
1
vote
1answer
844 views

Custom fields in com_content does not display when editing article in front end

I created a plugin to add a custom field following this answer. Works fine when I am logged in the backend and edit the article but the tab is not displaying when the article is being edited from the ...
0
votes
1answer
504 views

Create or edit an article using a form in the frontend in joomla 3.0

I need edit to create articles in Joomla from the frontend using a form because my articles follow a pattern. What I want when creating or editing articles it is to introduce only: a title, upload 2 ...
1
vote
1answer
2k views

Joomla 3 submit a form via AJAX after javascript checking fields validation

Faced with such a problem, how to make sure that the used AJAX request is sent only in case of successful completion of the built-in Joomla js validator. The code pattern is about the <?php // ...
1
vote
2answers
1k views

Unable to insert form values in to database Joomla 3

I am creating a custom joomla module based on form submission but i am having some problems in inserting the values I have a html form which has certain fieldsets which pass values to mod_score.php ...
7
votes
2answers
1k views

Is the new 'showon' attribute only for back-end forms?

I tried using the showon form field attribute in a front-end form with no working results. Not even the example given here is working: https://docs.joomla.org/Form_field#Showon Is there anything ...
1
vote
2answers
2k views

Form validation with fields having space as value

This is the field in the admin side form which is ment to be required. <field name="exam_name" type="text" label="Name" required="true" /> In the form if I leave this field empty (null) then ...
1
vote
1answer
493 views

Joomla 3 form validation

Why the form validation does not work on Safari ? I tried not to load the JHTML::_(behavior.formvalidator) I load the fields from the XML file <field name="title" type="text" ...
1
vote
2answers
3k views

Overriding save() method on form, how do I redirect to or show the form again after raiseError or enqueueMessage?

I am developing a component that uses a standard list/edit form to create records in the database (all of which goes smoothly) based on the Hello World! tutorial here. In addition to saving info to ...
2
votes
1answer
679 views

Custom bootstrap error message

I am doing custom form validation at admin side and below is the sample javascript code Joomla.submitbutton = function(task) if(condition){ document.getElementById('jform_acc_reseller_id')....
2
votes
2answers
877 views

using ajax inside a component without using com_ajax? [duplicate]

I making a practice component and i would like to try make an ajax search . Inside my component i made 2 methods. Method search() and searchRes(). The first has the html form for the search bar and ...
0
votes
1answer
66 views

SQL syntax error while creating a form in JForms - where to correct the SQL code?

We have a Joomla 1.5.9 website with JForms component and MariaDB of unknown version, but definitely corresponding to MySQL 5.x. I have administered it through GUI (both backend and frontend) for two ...
1
vote
1answer
134 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=...
6
votes
1answer
670 views

Custom XML attributes not showing in HTML markup

Here is the XML for a particular form field: <field type="text" name="first-name" id="first-name" label="MOD_LABEL_FIRST_NAME" required="required" maxlength="27" color="yellow" /> My ...
0
votes
1answer
629 views

Joomla 2.5 component load data from 3 forms

I'm still creating a component for Joomla 2.5 that have 4 forms: one main form (title, description) and others 3 forms with more fields. Main form have an id autoincrement that is the foreign key for ...
1
vote
1answer
530 views

Showon works on plugin backend but not frontend

I'm changing user profile plugin in Joomla 3.3, using method described in http://www.inmotionhosting.com/support/edu/joomla-25/user-profile tutorial. Everything works and OK. But I want to make some ...
1
vote
1answer
187 views

Override field with custom field and custom form submit in Template Manager

I'm building a new Template for Joomla 3.x and I want to make it easy for the user... In the template manager I want an 'Upload Photo' file-field. This is no problem; just define it in ...
0
votes
1answer
193 views

Rewrite COM_CONTENT code to save data from form into database

I have rewritten edit.php in /administrator/components/com_content/views/article/tmpl/edit.php to create an Events tab just like in this screenshot The only main issues I'm facing is how to to Save ...
1
vote
0answers
249 views

ContentBuilder Views Component doesn't list Views with SEF URLs

I'm using ContentBuilder Views plugin to display my forms results. It works just fine, the problem is that it only works with NO SEF URL's. And i really would like to use SEF URL's so my links would ...
1
vote
0answers
456 views

ReCaptcha not working on Contact page [closed]

So I have a Joomla! 3.3.6 site and I have everything set up as it's suposed to be (the ReCaptcha as the Global Captcha and I've changed the keys several times, but nothing happens). I use a plug-in, ...
1
vote
2answers
671 views

How to Create a Foreach Loop that Returns Users In a Specific Usergroup

My goal is to create an html select box via a foreach loop that returns all users within a specific custom usergroup (ex. usergroup = Agents). Once, the query pulls in all records (users) for that ...
1
vote
3answers
3k views

Cancel Button in custom default.php layout leads to form validation error

I am facing a problem with my cancel button in my default.php, which is a form with some input fields aswell a save and cancel button. There are some required fields in my form. When I use the cancel ...
2
votes
1answer
127 views

Components > Paypal Button not saving properly, neither iframe

I've tried to insert a paypal form + button on a component's type description and once I save a part of the code is gone. Before <form action="https://www.paypal.com/cgi-bin/webscr" method="post"...
5
votes
1answer
201 views

Item being edited was created as a new record instead of saving changes after clicking submit

Has anybody encountered this kind of issue where in my edit form, after clicking submit, it creates a new record instead of saving the changes I made? it was able to load the data of the item i ...
2
votes
1answer
351 views

How to set localised format for dates in a calendar field of a form?

tI want to add a calendar field to my custom form: http://docs.joomla.org/Calendar_form_field_type But I'd like that expected date format would be different depending on user's active language, as "...
2
votes
1answer
138 views

Custom buttons not working when inside module

So when I put these buttons inside an article they worked fine. As soon as I put them in a module (so I could show them dependent on if the user is logged in or not) they stopped working. The first ...
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
1answer
91 views

How to write html tags under “contact details” in components > contact > contact us

Please visit this link : http://naadiastrology.info/index.php/contact-us On the menu bar, you can see "Contact us" menu.[Components > Contacts> Contacts > Contact-us in admin ] If you click on that,...
1
vote
2answers
250 views

CKform Checkbox issue

I'm using Ck forms component to build my forms. Every things works fine, except checkbox, they are not like what is planned. My question is : how to align them one next to one, and how to match Value/...
2
votes
1answer
79 views

Ftp folder permission for a custum contact form

I built my own custom form which is inside a Contact folder with the 755 permission. Since my email address is inside the contact.php should I change the permission to 700?
-1
votes
4answers
5k views

How to create contact form from scratch

I'm Trying to create a custom contact form in Joomla 3, the reason is I didn't found such big contact form. Can somebody tell me how to do it? html: <div class="col-lg-12"> <form role="...
2
votes
3answers
580 views

Can some form extension write to/populate with values from database?

I want to have a very basic form, basically just a couple text fields and a few checkboxes. Ideally this form would be able to save to a table somewhere with the userid/name of the user that filled ...
1
vote
1answer
1k views

Add onclick/onsubmit event to form submit

I have made a plugin that add few fields on joomla registration form. Now I need to add a javascript event on submit that will handle those extra fields I added, but I couldn't find any way to ...
4
votes
2answers
433 views

Where can I find list of the available Joomla-WYSIWYG-Editor buttons etc

I'm currently developing a component and I'm using a form. I'd like to give the user a limited access to the functionality of the editor. According to http://docs.joomla.org/Editor_form_field_type I ...
2
votes
1answer
267 views

Repeatable xml form field - Can't remove fields / Repeatable.js issue

I am playing around with the new repeatable form field in my component. I am getting a few js errors. Chosen repeatable.js:187 TypeError: 'undefined' is not a function (evaluating '$('select')....
3
votes
1answer
154 views

Alter registration and comment forms

I am deveoping a small plugin that needs to alter the registration and comment forms to add 4 hidden fields that have data inside that I gather from the configuration panel, and when the form is ...
2
votes
1answer
3k views

Token check not working in custom component admin

I've built a custom component and have three forms that executes different tasks in the default.php view on subcontrollers within the administrator. Within my tmpl view default.php, each form has a &...
21
votes
1answer
7k views

How to save Custom Fields in Core components

I'm trying to add a single, simple field to each #__content item, and I've very carefully followed the tutorial at Adding Custom Fields to Core Components, substituting "content" for "contact". I now ...
2
votes
1answer
378 views

joomla protostar formfield width responsivness

How is it possible to size formfield widths for Joomlas Protostar Template? <field name="titel" type="text" label="COM_COMPONENT_TITEL_LABEL" description="COM_COMPONENT_TITEL_DESC" class="inputbox"...