The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Change deadline

SOLVED
Go to solution
Highlighted
marV_3
Acclaimed Contributor

Change deadline

Hi,

I need limit the modification to deadline field. I want that only the SPOC and the person who create the item can change this field, but I need that everyone can select the deadline when is create the item.

I think I can't do that with a simple UIR. My idea is create a new date field and copy the deadline when the item is create, and after do a UIR: when someone open the item and change the deadline, and is not a SPOC member or is not the enter by person, then show a error message and copy de date in the new field to deadline.

I don't know is is the right form to do that, for me is some "primitive". Is there other idea?
2 REPLIES
Ruth Porter
Honored Contributor

Re: Change deadline

Hi there,

You can do this with a role, a custom date field and a dB rule.

First set the field Deadline to read only for the relevant roles.

Then let anyone alter the custom field and have a DB rule:

When SC created
Condition NOT Custom field is empty,
Action data update set DEadline to custom field.

Then even if they alter the custom field again it will not affect the deadline,

Hope this helps, Ruth
http://www.teamultra.net
VVL
Occasional Contributor
Solution

Re: Change deadline

Hi,

You can try this..

you need to create two UIR.

first create one Date custom field=Original deadline.

in first rule:

After the form for an existing object is opened
Condition = NOT(Deadline is empty)
Action = Original deadline set to deadline

in second rule:

When a value has changed
Condition = Deadline*is anything
Action = Deadline set to make empty
Use notification message(saying it cannot be changed)
Deadline set to Original deadline

Try and let me know if this worked.

Regards,
Lakshmi

//Add this to "OnDomLoad" event