- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 05:10 AM
Hi,
I am trying to create a custom field decorator.
The decorator should copy the text in the field it is attached to, to the clipboard.
How do I create a custom field decorator??
I have tried creating a now-cli component that does this, but when I create the decorator and attach it to the field as a UI component, it just does nothing...
Solved! Go to Solution.
- Labels:
-
Now Experience UI Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 10:51 AM
thank you for the suggestions Drew, it helped me get the motivation to rumage around more to find the issue.
I was able to figure out why a UI component didn't natively work as a field decorator.
When you create a field decorator from the menu.
It does not set the form position to contextual side bar.
as the UI component MUST be set as a contextual side bar(maybe related item, didn't test this) to be loaded in,
even if it is a field decorator
I had to go to sys_declarative_action_assignment.list
where I found my decorator missing the form position.
Set it to contextual side bar through the list view, not the form view.
As the form view hides this option.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 06:31 AM
How does your properties setup look like in the component?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 07:20 AM
Have you review the documentation here?
Workspace has its own way to add Field Decorators to form fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 08:04 AM
yes, I have read the documentation.
I am able to use the built in field decorators in the workspace, create new ones and duplicate their effects.
Problem here is I am trying to make my own using the now-cli that does not seem to activate when the field decorator is pressed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 08:02 AM
properties picks up the value.
But problem is clicking the field decorator doesn't activate the UI component in any way.
the only code in it at the moment is the standard now-cli setup and a console.log statement.
If I use it as a contextual side menu or a related items it works just fine.
but as a field decorator it does nothing.