Missing Parts in CS Forms Docs

Hi there, i miss the following themes in the CS forms section under “DOCS”:

  • Error-Messages: How can I change the error message itself? And how can I use the fields Label in the message instead of the fields name (wich is sometimes not helpful or at least inconvenient for the user)
    Right now I get:
    “punkte_gesamt must be a number type, but the final value was: NaN (cast from the value "").” instead of “Field (fieldlabel) is empty”
  • How can I do calculations in a form, let’s say show the result for field_1 + field_2
  • in case I want to calculate using twig - how is the correct syntax to get the form-fields content? While
    {{ form.data({“key”:“fieldname”}) }} works,
    {{ form.data.fieldname }} does not work.
  • What also would be greta: To have all the knowledge about how to do what, that is shown in Josh’s videos also as a short transcript in the docs section. I often think: “I heart about it in one of the videos” and than have to re-view several videos to find out …
    Hope the docs get updated soon - and probably someone can give the answer here
    Uli
  1. I can look into updating it to use the field label.
  2. Checkout Twig Math doc. I can add in a little section on our forms docs around this.
  3. Not possible right now to use the Twig syntax you posted, I can update.
  4. Let us know what else you think should go in the docs.

Have a great day.

Hi @charlie, sorry for my late answer, notification did not work.
Thank you for going to update documentation.
But does that mean, right now I can not edit the error messages in the form? I really would like to use csforms in a live project, but as long as I can’t have proper and professional error-messages, I can’t.
Best regards
Uli

See the “Message” section of each validation as a workaround.

See the “Custom Error” action for advanced errors that utilize Conditions.

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