I want to override default sqs object on link field with some custom condition : Using SuagrCRM CE
Any help will be highly appreciated
I want to override default sqs object on link field with some custom condition : Using SuagrCRM CE
Any help will be highly appreciated
Here you go
function customSqs()
{
var formName='EditView_'; // form name
var fieldName= 'contact_name'; // field name to override SQS
var sqsId = formName + fieldName;
sqs_objects[sqsId]['conditions'] = [{
"name": "name",
"op": "like_custom",
"end": "%",
"value": ""
}, {
"name": ' lead_source', // name of field to apply filter
"op": "equal", // Operator
"value": 'Agent' // Value to compare
}
];
sqs_objects[sqsId]['group'] = "and";
}
// Adding custom SQS to lead_sourse field in contact module with condition where lead_source='Agent'
Thanks for reply let me test dude
M Waleed Raza thanks dude you made my day (y)
No worries man \./
Hello,
Where you have added the function customSqs() ?
Can you please guide me?
Please add it in your view JS file.