Service Manager / Service Center Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

check box on a form should be visible depending on the date of the month

SOLVED
Go to Solution
Advisor

check box on a form should be visible depending on the date of the month

Hello All,

 

I have a condition where the software uninstall requests are allowed to log only between 25th and 30th of the month. I created a check-box to make the uninstall true in the request. Now my challange is to make this visible only between 25th and 30th of every month.

 

I created this check-box in svccat.request.info form.

 

Please help achieving this functionality.

 

Regards,

Chosavarapu.

4 REPLIES
Honored Contributor Honored Contributor

Re: check box on a form should be visible depending on the date of the month

Hello,

if i am not mistaken there is not format control available for it.

 

You might try to tailor a global variable via login.DEFAULT.

There for  example on JS tab you can write a scipt which will make some global variable to true if system.functions.date(tod())>25 && system.functions.date(tod())>30. You have to play with commands day, date and so on as i don't have a system under hand to check the exact name  of it myself.

Frequent Advisor

Re: check box on a form should be visible depending on the date of the month

Dynamic View Dependency - DVD is described in format dep.g.

open it with Format Designer.

Honored Contributor Honored Contributor

Re: check box on a form should be visible depending on the date of the month

Hi,

As Vadim said you have to use some variable and use it in visible condition of check box.

Add below expression in Initialization Expressions on FC svccat.request.info form or to FC svcCart

if (day(tod()) >=25) then ($uninstall=true) else ($uninstall=false)

then but this variable in visible condition of check box as
[$uninstall]=true


Here assumed that you want to make it visible all the days after 25 (and since max value would be 31 hence it would be again invisible from first day of month).

Also can try it in FC login.DEFAULT but it will have small overhead for all the user logging at login time.

hth,
____________________________________
Assign Kudo, if found post useful and mark it accepted if solves the issue.
Highlighted
Advisor

Re: check box on a form should be visible depending on the date of the month

Hello Vadim and Piku,

 

First of all, I apologize for a delayed response.

 

I sincerely thank you for giving me the solution. 

 

@Piku, thank you for providing the step by step procedure to configure this visible condition.

 

Regards,

Subbu.