Getting user input to set task due date

Getting user input to set task due date

Hello. Thanks in advance for your help.

I am using a custom action, in the after transition of a blueprint transition, to automatically set a task with a due date of 2 days from the current date when the attempted contact was unsuccessful.

instead of defaulting to 2 days from the current date, I would like to implement a pop up dialog box or form of some kind that would allow to the user to to change the due date of the task by entering the number of days from the current date before the task is due. For example, if the user entered 7 the task would be due 7 days from today.

Is this something that can be done? If so, can you please provide an example or direct me to documentation that would guide me?

Here is the line from the script that accomplishes this:

mp.put("Due_Date",zoho.currentdate.addDay(2).toString("yyyy-MM-dd"));

Here is the entire script.

reltasks = zoho.crm.getRelatedRecords("Tasks","Leads",recid.toLong(),1,200);
for each  rec in reltasks
{
    reltaskid = rec.get("id");
    update = zoho.crm.updateRecord("Tasks",reltaskid,{"Status":"Completed"});
}
mp = Map();
mp.put("Subject","Contact Not Made. Set Next Attempt Date");
mp.put("Due_Date",zoho.currentdate.addDay(2).toString("yyyy-MM-dd"));
mp.put("Status","Not Started");
mp.put("$se_module","Leads");
mp.put("What_Id",recid);
mp.put("Owner",leadowner);
create = zoho.crm.createRecord("Tasks",mp);
info create;

Thank you,

Jeff