05-13-2013 06:03 AM
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.
Solved! Go to Solution.
05-14-2013 08:42 AM
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.
05-17-2013 08:05 AM
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
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.
Assign Kudo, if found post useful and mark it accepted if solves the issue.
05-28-2013 10:04 PM
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.