You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I update a multiline statically, everything works fine:
However, if I switch back to the payload of the text area, it breaks:
Maybe you can check on your side, if this is also an issue which should be fixed.
I assume an issue at payload converting in terms of multi-line strings...
Thanks a lot :)
The text was updated successfully, but these errors were encountered:
We will add appropriate updates to the documentation. It is an interesting case.
Create Payload code editor should contain the following logic:
Find element refer to TextArea
Add replace logic to value payload[element.id] = element.value.replaceAll("\n", "\\n");
here is example
constpayload={};context.panel.elements.forEach((element)=>{if(!element.value){return;}/** * Required logic to update the value */if(element.id==='description2'){payload[element.id]=element.value.replaceAll("\n","\\n");return;}payload[element.id]=element.value;})console.log('console >>> upd payload',payload)/** * Data Source payload */returnpayload;
This allows the line break to be properly converted
Thanks for your fast reply.
I think I found one more issue at text areas:
If I update a multiline statically, everything works fine:
However, if I switch back to the payload of the text area, it breaks:
Maybe you can check on your side, if this is also an issue which should be fixed.
I assume an issue at payload converting in terms of multi-line strings...
Thanks a lot :)
The text was updated successfully, but these errors were encountered: