check box on a form should be visible depending on the date of the month (489 Views)
Reply
Advisor
Chosavarapu
Posts: 29
Registered: ‎10-15-2008
Message 1 of 5 (489 Views)
Accepted Solution

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.

Honored Contributor
Vadim Gorda
Posts: 5,861
Registered: ‎11-10-2008
Message 2 of 5 (470 Views)

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
bzember
Posts: 42
Registered: ‎10-09-2011
Message 3 of 5 (461 Views)

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
Piku
Posts: 4,135
Registered: ‎06-17-2010
Message 4 of 5 (445 Views)

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.
Advisor
Chosavarapu
Posts: 29
Registered: ‎10-15-2008
Message 5 of 5 (432 Views)

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.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.