ZDK.Page.getList().style( { record: { backgroundColor: '#e9fbf4' }, field: { Lead_Status: { backgroundColor: '#e9fbf4', foregroundColor: '#008000', fontWeight: 'bold' } } }, "((Lead_Status:equals:Pre-Qualified))" ); ZDK.Page.getList().style( { field: { Lead_Status: { foregroundColor: '#ff6666', fontWeight: 'bold' } } }, "((Lead_Status:equals:Lost Lead)or(Lead_Status:equals:Junk Lead))" ); ZDK.Page.getList().style( { field: { Lead_Status: { foregroundColor: '#FFA500', fontWeight: 'bold' } } }, "((Lead_Status:equals:Attempted to Contact))" ); |
ZDK.Page.getList().style( { record: {backgroundColor: 'color code'}, field: {field_name: {foregroundColor: 'color code', fontWeight: 'bold'}} }, "(criteria)" ); |
var field_obj = ZDK.Page.getField('Lead_Status'); if (field_obj.getValue() == 'Pre-Qualified') { field_obj.addStyle({ foregroundColor: '#008000', borderColor: '#008000'}); } else if( (field_obj.getValue() == 'Lost Lead') || (field_obj.getValue() == 'Junk Lead') ){ field_obj.addStyle({foregroundColor: '#ff6666', borderColor: '#ff6666'}); } else if(field_obj.getValue() == 'Attempted to Contact') { field_obj.addStyle({ foregroundColor: '#FFA500', borderColor: '#FFA500' }); } |
field_obj.addStyle({ backgroundColor: 'color code', foregroundColor: 'color code', borderColor: 'color code' });) |
elementid.addStyle({'background-color': 'red', color: 'white', 'border-radius': '40px'}) |
Writer is a powerful online word processor, designed for collaborative work.