• 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: is there a way to not send the default value of

is there a way to not send the default value of 11 years 2 months ago #26594

  • lolin
  • lolin's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi friends,


i need to do that:

we know that, if i set up "TEXT" as default value of a not required field, when i send the form, "TEXT" is sent as value of that field, so, is there a way to not send the default value of fields if these are not filled?

Please help, sorry for my english.
The administrator has disabled public write access.

is there a way to not send the default value of 11 years 2 months ago #26598

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

The simpler way would be to use the placeholder="TEXT" attribute for your field. This attribute can be added from backend > Components > RSForm!Pro > Manage Forms > your form > edit the field > Attributes tab > "Additional Attributes" area.

Another way would be to use the $invalid method to check the field and invalidate it upon submit. A more detailed explanation on this method can be found here:

www.rsjoomla.com/support/documentation/v...602-php-scripts.html
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.
The following user(s) said Thank You: lolin

is there a way to not send the default value of 11 years 2 months ago #26630

  • lolin
  • lolin's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
im going to try!!

thanks!!
The simpler way would be to use the placeholder="TEXT" attribute for your field. This attribute can be added from backend > Components > RSForm!Pro > Manage Forms > your form > edit the field > Attributes tab > "Additional Attributes" area.

that works, thank you
Last Edit: 11 years 2 months ago by lolin. Reason: reply
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!