Forgot your password? Forgot your username? Create an account

 
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Redirect "module form" values to "main contact form"

Redirect "module form" values to "main contact form" 1 year 9 months ago #12644

Hi,

Basicly i have short reservation form as module.. it has just 4 field.. and when i click "book now" i want to send this values to my main form.
I can write a normal form module but i am not sure how can i send this values to aicontactsafe_component - my main form. is it possible?
please check out below
The administrator has disabled public write access.

Redirect "module form" values to "main contact form" 1 year 9 months ago #12645

  • Alex
  • Alex's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 7791
  • Thank you received: 245
  • Karma: 60
Yes, it is possible.
Take a look on how the plugin aiContactSafeLink is sending info to the form. It is basically a form with hidden fields.
The administrator has disabled public write access.

Redirect "module form" values to "main contact form" 1 year 9 months ago #12646

thanks man.
The administrator has disabled public write access.

Redirect "module form" values to "main contact form" 1 year 9 months ago #12647

  • Alex
  • Alex's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 7791
  • Thank you received: 245
  • Karma: 60
You're welcome. :)
The administrator has disabled public write access.

Redirect "module form" values to "main contact form" 1 year 9 months ago #12648

i have one more question.. this contactsafe_link is just working in articles.. and i need it as a module. so i used a "custom code pluging-module". i simply copy html codes between <form> and </form>. and it worked.. but on my date field i need a date selector. its working on normal form but not on mine what i did myself. is there a way to do that?
The administrator has disabled public write access.

Redirect "module form" values to "main contact form" 1 year 9 months ago #12649

  • Alex
  • Alex's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 7791
  • Thank you received: 245
  • Karma: 60
That plugin is working not only in articles but everywhere the content plugins are executed.
I've mentioned it just so you can have an example on how to send info into the form and I think it's a mistake to use that exact code. You need to adapt it to your needs and put it into a module.
As for the date field please look into the instructions on what value can you use for the "Default value" parameter of a date field. The way you make the selector is up to you ( the default one on Joomla should work just fine ). You just need to send the date value in the format yyyy-mm-dd ( year-month-day ).
The administrator has disabled public write access.
  • Page:
  • 1
  • 2