I have a requirement to include a text field and a button on a view where after I add some text to the field, that should be concatenated to another string. Combined, this new string is a URL and when the button is pressed, it should open a new window taking us to this new URL.
How can I achieve this in Cosmos React as we do not have the option to include buttons in Views?
Thanks
Branched Information: Originally posted as reply here.
Based on the context, it’s not possible to directly add buttons in Pega Constellation views.
The Constellation UI is focused around the center-out approach, where the UI of the application is generated based on the process of your case defined in the case designer.
If there is a need for a button on your assignment other than submit, cancel, or save, you have to think differently about the process. Can you embed it as a separate step (perhaps conditionally) or as a local action? As for concatenating a text field with another string to create a URL, you can create a property of type URL and use a data transform or an activity to concatenate the strings and set the value of the URL property.
However, opening this URL in a new window might not be directly supported in Constellation. Please note that these are general guidelines and the exact implementation might vary based on your specific use case and Pega Platform version.
This is a GenAI-powered tool. All generated answers require validation against the provided references.