- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2016 12:08 PM
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;
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2016 01:03 PM
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>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2016 01:03 PM
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>