| 
	    
         By: Marco 
        Date: 2015-10-14 
        Time: 08:37 
		
	   | 
	  
      
	    cannot apply style if a value=1
        
        Hello, I'm trying to makea div have the style: "pointer-events: none; position:relative;" when variable visible.acceptoffer equals "1" 
 
All of these always go in the "else" statement, whatever the value of visible.acceptoffer: 
<div class="row" style="[visible.acceptoffer;if [visible.acceptoffer]=1;then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[visible.acceptoffer;if [visible.acceptoffer]==1;then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[visible.acceptoffer;if [visible.acceptoffer]='1';then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[visible.acceptoffer;if [visible.acceptoffer]=='1';then 'pointer-events: none; position:relative;';else '']"> 
 
<div class="row" style="[if [visible.acceptoffer]=1;then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[if [visible.acceptoffer]==1;then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[if [visible.acceptoffer]='1';then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[if [visible.acceptoffer]=='1';then 'pointer-events: none; position:relative;';else '']"> 
 
I also tried adding block=div; in there, still not working... 
 
Anybody can help before I rip all my hair off my head? 
 
thanks 
	   | 
	  
    
	
      | 
	    
         By: Skrol29 
        Date: 2015-10-14 
        Time: 16:29 
		
	   | 
	  
      
	    Re: cannot apply style if a value=1
        
        Hi, 
 
Are you using MergeBlock() or MergeField() ? 
	   | 
	  
    
	
      | 
	    
         By: Marco 
        Date: 2015-10-15 
        Time: 06:42 
		
	   | 
	  
      
	    Re: cannot apply style if a value=1
        
        Hello! 
 
Thanks for your time!!! 
 
We are using MergeField: 
$this->tbs->MergeField('visible', $data['visible']); 
	   | 
	  
    
	
      | 
	    
         By: Sheepy 
        Date: 2015-10-19 
        Time: 08:20 
		
	   | 
	  
      
	    Re: cannot apply style if a value=1
        
        Try this: 
<div class="row" style="[visible.acceptoffer;if [val]=1;then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[visible.acceptoffer;if [val]==1;then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[visible.acceptoffer;if [val]='1';then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[visible.acceptoffer;if [val]=='1';then 'pointer-events: none; position:relative;';else '']"> 
 
<div class="row" style="[onshow; if [visible.acceptoffer]=1;then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[onshow; if [visible.acceptoffer]==1;then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[onshow; if [visible.acceptoffer]='1';then 'pointer-events: none; position:relative;';else '']"> 
<div class="row" style="[onshow; if [visible.acceptoffer]=='1';then 'pointer-events: none; position:relative;';else '']"> |  
  
	   | 
	  
    
	
    
	
    
       | 
      
	    
		
         
		  Posting in progress. 
          Please wait...
		 
		
	   |