- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2024 04:58 AM
I want to create a button visible only workspace such taht after clicking it make additional comment madetory and after filing it, it will go to next state . How to proceed?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2024 05:21 AM - edited ‎08-21-2024 05:28 AM
Hi @Rosy14 ,
Create a UI Action,
In the workspace client script,
function onClick(g_form) {
g_modal.showFields({
title: "Enter your reason",
fields: [{
type: 'textarea',
name: 'comments',
label: getMessage('Reason'),
mandatory: true
}],
size: 'lg'
}).then(function(fieldValues) {
g_form.setValue('comments', fieldValues.updatedFields[0].value);
g_form.setValue('state',[Backend value of the state];
g_form.save();
});
}
On clicking of the UI action, a popup will populate to fill mandatory Additional comments.
Clicking Ok will map it to additional comments and state changes to state mapped in. (Add the state from the last 4th line of the code).
If this information helps you, kindly mark. it as Helpful and Accept the solution.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2024 05:21 AM - edited ‎08-21-2024 05:28 AM
Hi @Rosy14 ,
Create a UI Action,
In the workspace client script,
function onClick(g_form) {
g_modal.showFields({
title: "Enter your reason",
fields: [{
type: 'textarea',
name: 'comments',
label: getMessage('Reason'),
mandatory: true
}],
size: 'lg'
}).then(function(fieldValues) {
g_form.setValue('comments', fieldValues.updatedFields[0].value);
g_form.setValue('state',[Backend value of the state];
g_form.save();
});
}
On clicking of the UI action, a popup will populate to fill mandatory Additional comments.
Clicking Ok will map it to additional comments and state changes to state mapped in. (Add the state from the last 4th line of the code).
If this information helps you, kindly mark. it as Helpful and Accept the solution.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2024 06:05 AM - edited ‎08-21-2024 06:09 AM
Thanks. working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2024 06:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2024 06:51 AM
It is working but the state value is not changing btw.