replaceText
Replaces a text with the current values of the app.
Parameters
text - the text with parameters
additionalReplacings - json object with key value pairs
Example Usages
This example uses the controls of the app to replace the values.
let newText = app.replaceText("Hello @id");
This example uses the controls of the app to replace the values. Here, @id serves as a placeholder and will be replaced with the corresponding value.
let newText = app.replaceText("Hello @myCustomParam", {
myCustomParam: "world",
});
Return Values
The function returns a modified string after replacing the placeholders.
Last updated
Was this helpful?