- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 12:15 PM
ï was asked to modify a catalog task on flow designer. my requestor one some field to be mandatory on a specific task, but not in all how i can achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 07:43 AM
@Enovella23 , if you dont have any filed which stores the uniqueness which says its task a or task b then you can create a custom field and in flow while creating the task set the the field values with different values to recognise the difference between the task a and b
then create a onload client script in sc_task table there get the value of your custom field and set the field mandatory,
function onLoad{
var uniqueField = g_form.getValue("custom_field_backeend_name");
if( uniqueField == 'Task a' )
{
g_form.setMandatory('state',true);
}
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 06:12 AM
do you know which name have the short description task field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 07:43 AM
@Enovella23 , if you dont have any filed which stores the uniqueness which says its task a or task b then you can create a custom field and in flow while creating the task set the the field values with different values to recognise the difference between the task a and b
then create a onload client script in sc_task table there get the value of your custom field and set the field mandatory,
function onLoad{
var uniqueField = g_form.getValue("custom_field_backeend_name");
if( uniqueField == 'Task a' )
{
g_form.setMandatory('state',true);
}
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 07:00 AM
im trying like this but is not working