ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

ProForm Catchall

May 24, 2012 9:30am

Subscribe [3]
  • #1 / May 24, 2012 9:30am

    airways

    154 posts

    The ProForm Catchall field is a field driver for ProForm that adds support for handling arbitrary fields posted to a form. When you don’t know which fields are needed ahead of time, ProForm Catchall comes to the rescue.

    Be sure to checkout the ProForm Catchall tutorial with a complete example template.

    This driver is part of ProForm’s expanding platform for advanced form handling in ExpressionEngine 2.0.

    Features
    * Create multiple collections of custom field data when posting to a form
    * Only fields present on each entry are shown in the Control Panel

    Links
    * Free Download on Devot:ee
    * ProForm Catchall Tutorial
    * ProForm on Devot:ee

  • #2 / May 28, 2012 3:43am

    jimxianhu

    4 posts

    A good regular expression engine should support the basic binary operators and function calls, and binary operators can be the nested function calls, the function calls can also be the nested binary operators, such as:
    Example 1: = 2> 1 && ((Num (1) +2 * the Num ((Num (2) +2) * 3/Num (2))) / 2> 0 | | 2> 1) && 0> 1, the Executive results: 0

    Example 2: = Switch (Num (1), Num (0), No), the implementation of the results: Yes

    Example 3: = Switch (20 <10,1, 20> = 10, 20 + 20 * 0.1), the results of the implementation: 22

    Of course, the actual application, the expression should support variable binding such as:

    Example 1 (to calculate the after-tax amount): = Fields! The number of Value * Fields Price. Value * (1 + Fields, tax rates. Value / 100)

    Example 2 (different prices for different after-tax amount): = Fields! Quantity Value * Fields, Price Value * Switch (Fields! Price Value 100 1.1, Fields! Price Value <500, 1.08, Fields! Unit price. the Value <800, 1.07)

  • #3 / May 28, 2012 9:04am

    airways

    154 posts

    jimxianhu,

    I’m a little confused about the context as well as the content of your comments. What are you trying to accomplish exactly? It may help to start there.

  • #4 / May 28, 2012 9:13am

    jimxianhu

    4 posts

    I want to know is the expression, you can continue for me to explain it?

  • #5 / May 28, 2012 9:22am

    jimxianhu

    4 posts

    airways

    You still online?In fact, I do not want to deceive you, I was a young man from China, I have come to learn with you.

  • #6 / May 28, 2012 9:29am

    airways

    154 posts

    Well it looks like you want to store a calculated value in one field based on an expression that uses values from other fields on the form. Does that sound about right?

    I will have limited connectivity today but if this is what you’re attempting to do I can certainly look into adding support for it to ProForm. Probably it would not require the Catchall driver to do it - I’d just add it directly into ProForm.

  • #7 / May 28, 2012 9:43am

    jimxianhu

    4 posts

    You are right, because I wanted to study under this Catchall, I hope you can teach me.

  • #8 / May 29, 2012 9:39am

    airways

    154 posts

    Currently this capability doesn’t exist in ProForm itself, or in Catchall. I have added it to my list of things to implement however, so it should be possible fairly soon. When I do add it, I’ll release a blog post on the main site explaining how to use it and you can submit support requests to the ProForm forum directly if you have any trouble using it.

  • #9 / May 30, 2012 8:42am

    danieljohnbarnes

    151 posts

    Airways, I think this guy might be a wannabee spammer? Non-sensical posts, about “regular expression” ENGINE, suggests this thread has been crawled to order…

  • #10 / May 30, 2012 10:08am

    airways

    154 posts

    Yeah I guess I suspect that as well… although if that’s true, a spambot has actually given me a good idea. Which is sort amazing actually.

  • #11 / Aug 09, 2012 4:48am

    kowalaski

    1 posts

    a

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases