Table Scripts missing in 2021.1

Previous to 2021.1, you could access dynamic table scripts, but in 2021. 1 they are no longer visible.
Previously on individual field scripts, I added additional fields with a
suffix.

What is the best method to perform this in 2021.1?

I can add a script for a field, but can’t seem to add values from other detail fields.

<td>@field1@<br>@field1@<br>@field1@<br>@field1@<br></td>

Hi @UomoDelGhiaccio,

Yes, your findings are correct.

Can you please let us know if you would like to add fields–which does exist in the same detail table inside your Data Model as the current fields (TD-elements) --to your current (Detail) Table element, or would you like to add custom fields (TD-elements)–of which you would like to replace it’s content by some custom Standard Scripts–to your current (Detail) Table element?

If the first part is true then you can add–in Source mode–a TD-element to the existing TR-element, like for example:

Before:

<tr data-repeat="detail">
	<td data-field="Name">@Name@</td>
</tr>

After:

<tr data-repeat="detail">
	<td data-field="Name">@Name@</td>
	<td data-field="ID">@ID@</td>
</tr>

Where the value of the data-field attribute needs to be the same as the record field name.

If the second part is true then you can do the same as above but instead of the data-field attribute you will have to add the data-script attribute to the td element, like in the following example:

<tr data-repeat="detail">
	<td data-field="Name">@Name@</td>
	<td data-script="custom">Custom Script</td>
</tr>

And create a Standard Script of which the Selector value is: table [data-script='custom']

More information about both using data-* attributes can be found at ‘A Dynamic Table’s data- attributes’ and ‘Quick-start a script with the Create script button’. Both links makes part of the online PlanetPress Connect 2021.1 User Guide.

Please let me know if you have any questions or need any more information about my somehow complex comment :wink:

In this case we are attempting to add multiple lines to the comments field using 3 fields

I able to add a script in 2021.1 and add the extra fields with a space between, but can’t insert the html line break between the fields.

Tried <br>
image

Tried &lt;br&gt;
image

Tried '\n'
image

Hi @UomoDelGhiaccio,

Please check in the Edit Script window of your Text Script if the option HTML has been selected as Insert Method (Options > Insert Method). And in case of a Standard Script, please use the function this.html() instead of this.text().

Indepth information about the html() function can be found on the following web page:
‘html() - PlanetPress Connect 2021.1 User Guide’

Thank you.
Works like a charm!