Hello.

First, I need to say that I'm a complete newbie on Drupal so, sorry if my question is stupide. 

I have a question (need help) regarding element in webform (and how to create a more complex one if it's possible)

First, I was positively surprised to see, on the text field element, that it's possible to have prefix and suffix. In English, the $ goes before an amount but after if the form is in French. (it would be useful to have a separate space for currency that would switch side automatically, depends on the language used

However, I was wondering how to create a new element that would cover different scenario.

Sorry, the example is using tax form element

  1. The easy one already covered by the existing element (Description + amount field (9 digits +2 decimals, negative values allowed). Field title deactivated.
  2. The a bit more complex case, also covered by the existing element (Description + prefix $ + amount field (9 digits +2 decimals, negative values allowed). Field title deactivated. 
  3. Now with 2 Prefix I guess.  (Description + prefix = + prefix $ + amount field (9 digits +2 decimals, negative values allowed). Field title deactivated.
  4. More complex. Now we have a black box, which should be the field Title. So, (Description + Field Title in Black box + prefix = + prefix $ + amount field (9 digits +2 decimals, negative values allowed).
  5. A bit more complex. Now we add a white box. So, (Description + Field Title in Black box + prefix = + prefix $ + amount field (9 digits +2 decimals, negative values allowed) + white box. Note the double lime at the bottom.

Here is even more complicated. 

XYZ is actually the description of the second field. So, between the description and its field, we have another field and a calcul.

Only local images are allowed. (https://www.dropbox.com/scl/fi/3qqymo324zz0y8gzrfjz3/6.png?rlkey=a022reu...)

Is it possible to create an element that could manage any variation of the 5 points and a second, I guess a Layout element that could allow the last example ?

Thank you for your help 

Comments