List Control Script

nortonxnorris
Giga Expert

Hi,

My LIST CONTROL script is tying to hide the 'New' button if a date/time field is blank.

I have tried a couple of options, but it does not seem to work. What am I missing?

Options tried:

parent.start_date.toString() == ''

parent.start_date.toString() = 'NULL'

parent.start_date == ''

parent.start_date == 'NULL'

Script:

var answer;

if(parent.start_date.toString() == '' ){

  answer=false;

}

else{

  answer=true;

}

1 ACCEPTED SOLUTION

randrews
Tera Guru

the scripts are negative in nature... <asking if we should OMIT something not if we should show it> so your answers are reversed...



if the date string is blank you want an answer of true <omit the new button> and else the answer is false <do NOT omit it>


View solution in original post

1 REPLY 1

randrews
Tera Guru

the scripts are negative in nature... <asking if we should OMIT something not if we should show it> so your answers are reversed...



if the date string is blank you want an answer of true <omit the new button> and else the answer is false <do NOT omit it>