CS Forms AJAX Issue

Hello Support Team,

I have a question regarding the new CF Forms Builder. I followed the YouTube tutorial step by step, but I’m currently stuck and not sure how to proceed.

How can I allow users (for a guest registration) to enter the number of guests and then have those guests displayed as a list on the frontend—similar to how post title and post content are output?

Do I need to work with ACF fields for this, or is it possible using custom/meta values within the builder?

Could you please take a look and let me know what I might be missing?

Best regards,

Hey @ArtOfSpring,

Thanks for posting in!

You can use the dynamic content post meta {{dc:post:meta key="Anzahl Gäste"}} to display the number of guest.

By the way, you will need an action group:
image

First, the post must be created.
Second, you will have to update the post meta of the latest post item.

The Post Meta Update action runs a Looper to get the latest item because the target ID is needed in updating a meta field.
image

Check out the demo now. Thanks.

Hello @ruenel,

thank you for helping me out, it works! But now help me to understand the workflow.
I want now the the guest put in the number of children coming to the event. So I have to do the following steps:

  1. Create “number-children” field in the form
  2. Create a Meta field for this like here?
  3. Duplicate the post meta update element in the action group?
  4. Put this {{dc:post:meta key=“number-children”}} in a text Element to show it?

Is that right? Do I have to do somtehing in the ACF fields as well?

Is there a possibility to summen all the guest numbers they type in togehter in this Area:


That everybody can see how many people will come to the party.

Thank you for helping me out. I still need to understand how this new CS Forms works.

Hey @ArtOfSpring,

The updating of the “Number of Children” field is on the right track. You do not need to update the ACF field because your ACF field is actually the same as the Guest CPT field.

To sum up all the numbers of guests, you will need to have a custom PHP code that looks up the guest list, adds the number of guests, and adds the number of children. It could be a shortcode to easily display the total number anywhere. Be advised that custom PHP coding is beyond the scope of our support. You may need to contact a 3rd party developer or subscribe to our ONE service support.

Best Regards.

Hey @ruenel,

I’ve found a solution to display the total number of guests. However, there’s still one thing missing before it looks really good. I’d like to arrange everything into four columns so it’s easier to distinguish between the different sections, especially since the text lengths entered by guests can vary.

But as soon as I place everything into multiple columns, the looper no longer works correctly. Could you take another look and show me how to configure the looper so that everything is displayed in a single row? (like in the screenshot)

Thank you for helping me, the new CS Form is really nice!

Hey @ArtOfSpring,

The looper is working. It’s the layout that’s the problem. It’s tricky because you have small area and some text are long.

I’d suggest stacking your Column and splitting your Row to 2 column layout.

Hello @christian and @ruenel,

now it worked out and it is doing what I want the form to do, I integrated a Catering List as well via Costum PHP.
In the future it would be nice if the next updates of the CS Form Builder would include these type of features to make it even more perfect :wink:

But thank you for helping me out a lot!!!

Best wishes

It’s always a pleasure, @ArtOfSpring.
We’re glad we were able to help you out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.