Creating form inside Joomla article?

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
vicn1222
Joomla! Intern
Joomla! Intern
Posts: 54
Joined: Fri Jul 02, 2021 10:34 pm

Creating form inside Joomla article?

Post by vicn1222 » Mon Jul 19, 2021 3:46 am

Hi,

I am trying to build a custom submission form inside Joomla article. Is there an Joomla form php base class that I can derive from and build my own custom form, which can be rendered inside Joomla article?

I see some plugins, but it may be easier for me to just create one myself since I need js and ajax validation for user inputs.

Thanks.

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 7044
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Creating form inside Joomla article?

Post by AMurray » Mon Jul 19, 2021 8:58 am

Most of the existing form builders have field validation.
https://extensions.joomla.org/category/ ... act-forms/

For your own, you'd need to write an extension or set of extensions comprising - plugin(s), module(s), component(s) (possibly a mix of all three) to handle various aspects e.g. plugin might handle the field validation, module displays the form, component to manage the back-end entries and form configuration and/or displays the form through a menu item etc).

I believe you could start here for developer resources on extension development: https://docs.joomla.org/Category:Extension_development
Regards - A Murray

User avatar
JAVesey
Joomla! Hero
Joomla! Hero
Posts: 2362
Joined: Tue May 14, 2013 1:21 pm
Location: Cardiff, Wales, UK
Contact:

Re: Creating form inside Joomla article?

Post by JAVesey » Tue Jul 20, 2021 11:18 am

vicn1222 wrote:
Mon Jul 19, 2021 3:46 am
I am trying to build a custom submission form inside Joomla article.
Most of the form builder extensions allow you to design/build/customise a form with the fields that you need and insert it into an article.

Building your own might be a case of reinventing the wheel.
John V
Cardiff, Wales, UK
Uses Joomla 3.10.2 and PHP7.4.23

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 7044
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Creating form inside Joomla article?

Post by AMurray » Tue Jul 20, 2021 10:58 pm

As to putting the form inside a joomla article, that can be achieved in several ways:

loadposition or loadmodule are two that exist in joomla
https://docs.joomla.org/How_do_you_put_ ... article%3F

There are also third party extensions such as Modules Anywhere by Regular Labs.
Regards - A Murray

nfbauti
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Mon Nov 14, 2016 5:04 pm

Re: Creating form inside Joomla article?

Post by nfbauti » Fri Jul 23, 2021 3:31 pm

Use this plugin it's free and easy to use, create a form and embed it anywhere on your website

https://extensions.joomla.org/extension ... iform-pro/
Last edited by mandville on Sat Jul 24, 2021 6:41 pm, edited 1 time in total.
Reason: replaced with jed url as per forum rules

vicn1222
Joomla! Intern
Joomla! Intern
Posts: 54
Joined: Fri Jul 02, 2021 10:34 pm

Re: Creating form inside Joomla article?

Post by vicn1222 » Sun Jul 25, 2021 5:50 am

Thank you all for the reply.

Currently I am doing it myself. I feel it may be harder to use any plugins.

I am writing a generic subscription module using MVC that supports subscription products selection, payment method selection (PayPal, stripe, credit card, etc.), user registration information etc. I also need to listen to webhook events to update user account accordingly, and send out email if next payment fails, etc. it is hard to use any existing plugins.


Post Reply

Return to “General Questions/New to Joomla! 3.x”