• 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: Only email completed fields

Only email completed fields 4 years 11 months ago #40192

  • Romuba
  • Romuba's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
A client would like me to create a form which will have about 100 different check items. It will be for a removal company so that his clients can fill in what they want moved and then he can quote on it.

The idea then is to have a list of items and each has a 0 in a box. The client then changes the 0 to how ever many of that item they want. What I need to be able to do is that when the email is created it only has those items which have more than 0 in the check box. Currently he gets the entire list with each submission and that takes up about 12 pages and he needs to look for items with greater than 0.

Any ideas or a different extension that could do this?
Ross Bartholomew
The administrator has disabled public write access.

Only email completed fields 4 years 11 months ago #40195

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 246
  • Thank you received: 64
You could probably write a custom PHP script called on form process or submit but I wouldn't like to say how as I'm still getting to grips with things like that for a club membership form. If you have the patience (cos 100 items is a lot) then use the {if }......{/if} for each field directly in your email or an attached pdf like this

{if {sofas:value}>0} {sofas:caption} {sofas:value} {/if}

That basically says if the sofas field has a value greater then 0 the include the field caption and value. It might not work if the field has a placeholder or default value of 0 in which case remove the >0 bit
Not the most efficient solution but gets you going
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
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!