• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How remove prefix "form" from field name

How remove prefix "form" from field name 12 years 7 months ago #19057

Hi

I want to integrate RSF with Virtuamart "add to cart" form
but in RSF is prefix "field" in field names

how remove it from my form


code in RSF
...<input type="hidden" name="form[product_id]" id="product_id" value="52"  />
		<input type="hidden" name="form[flypage]" id="flypage" value="shop.flypage.tpl"  />....

I need remove "form" prefix from my form
...
<input type="hidden" name="product_id" id="product_id" value="52"  />
		<input type="hidden" name="flypage" id="flypage" value="shop.flypage.tpl"  />
...

Please help

Regards
The administrator has disabled public write access.

Re: How remove prefix "form" from field name 12 years 7 months ago #19058

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello ,

Removing the "form" part will have functionality implications - basically will disable most of the RSform!Pro functionality.

I would recommend using the post to location feature. You can read more on it here:

www.rsjoomla.com/support/documentation/v...ion-silent-post.html
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Re: How remove prefix "form" from field name 12 years 7 months ago #19059

I enable silent-post option but i have still "form" prefix :(

any sugestions ?

PHP Script called after form has been processed ?
The administrator has disabled public write access.

Re: How remove prefix "form" from field name 12 years 7 months ago #19060

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello ,

Enabling the post on location (silent post) does not remove the "form" , it is used to post your form data on a specific URL/location in your case to your Virtuamart "add to cart" form.

Just add the address in "Post to URL" [ your form > properties > extras > Post to Location(Silent Post) ]
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Re: How remove prefix "form" from field name 12 years 7 months ago #19061

Silent mode enabled but form dont work

if i remove prefix form works fine

<form method="post"  name="addtocart" enctype="multipart/form-data" action="index.php">
		<td><select  name="form[Abonament52][]"  id="Abonament52"  class="rsform-select-box" ><option  value="roczny">Roczny = 60zł</option></select>
		<td><input type="text" value="" size="20"  name="form[nazwa_domeny52]" id="nazwa_domeny52"  class="rsform-input-box"/>
		<td><input type="hidden" name="form[product_id]" id="product_id" value="52"  />
		<td><input type="hidden" name="form[Dadatki52]" id="Dadatki52" value="brak"  />
		<td><input type="hidden" name="form[flypage]" id="flypage" value="shop.flypage.tpl"  />
		<td><input type="hidden" name="form[page]" id="page" value="shop.cart"  />
		<td><input type="hidden" name="form[manufacturer_id]" id="manufacturer_id" value="1"  />
		<td><input type="hidden" name="form[category_id]" id="category_id" value="7"  />
		<td><input type="hidden" name="form[func]" id="func" value="cartAdd"  />
		<td><input type="hidden" name="form[option]" id="option" value="com_virtuemart"  />
		<td><input type="hidden" name="form[Itemid]" id="Itemid" value="53"  />
		<td><input type="hidden" name="form[quantity]" id="quantity" value="1"  />
		<td><input type="submit" value="wyslij" name="form[wyslij]" id="wyslij"  class="rsform-submit-button" />
<input type="hidden" name="form[formId]" value="3"/></form>
Last Edit: 12 years 7 months ago by jarecki74.
The administrator has disabled public write access.

Re: How remove prefix "form" from field name 12 years 7 months ago #19062

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello ,

-please make sure that you have the silent post option to "no" [ your form > properties > extras > Post to Location(Silent Post) ]

- You should also download RSForm!Pro and install it over your current one. This will act as an update (some adjustments have been made to the post to location feature)
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Re: How remove prefix "form" from field name 12 years 7 months ago #19063

After backup and restore form on production serwer, form dont work :(

On test serwer work fine

What could be the problem? PHP ? mysql ?



System config on test serwer
Database Version: 5.0.95-community
Database Collation: utf8_general_ci
PHP Version: 5.2.17
Web Server: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Web Server to PHP interface: cgi
Joomla! Version: Joomla! 1.5.26 Stable [ senu takaa ama busani ] 27-March-2012 18:00 GMT
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1


Relevant PHP Settings
Setting Value

Safe Mode: Off
Open basedir: None
Display Errors: On
Short Open Tags: On
File Uploads: On
Magic Quotes: On
Register Globals: Off
Output Buffering: Off
Session Save Path: /tmp
Session Auto Start: 0
XML Enabled: Yes
Zlib Enabled: Yes
Disabled Functions: None
Mbstring Enabled: No
Iconv Available: Yes
WYSIWYG Editor: Editor - No Editor




system config on production server
System Information
Setting Value

PHP Built on: FreeBSD
Database Version: 5.5.25
Database Collation: utf8_general_ci
PHP Version: 5.2.17
Web Server: Apache/2.2.22 (FreeBSD) PHP/4.4.9 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2
Web Server to PHP interface: cgi
Joomla! Version: Joomla! 1.5.26 Stable [ senu takaa ama busani ] 27-March-2012 18:00 GMT
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1

Relevant PHP Settings
Setting Value

Safe Mode: Off
Open basedir: None
Display Errors: On
Short Open Tags: On
File Uploads: On
Magic Quotes: On
Register Globals: Off
Output Buffering: Off
Session Save Path: None
Session Auto Start: 0
XML Enabled: Yes
Zlib Enabled: Yes
Disabled Functions: system, exec, passthru, popen, escapeshellarg, shell_exec, proc_open, escapeshellcmd
Mbstring Enabled: Yes
Iconv Available: Yes
WYSIWYG Editor: Editor - No Editor


Last Edit: 12 years 7 months ago by jarecki74.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!