Hi everyone,
I have a list screen where I need to hide fields based on the condition. Is it possible?
For example:
I need to hide the fields circulated

Hi everyone,
I have a list screen where I need to hide fields based on the condition. Is it possible?
For example:
I need to hide the fields circulated
Hi
You will need to create a client script and add it to the populate/refresh event
var listData = getCurrentListData();
var listLength = listData.length;
if (listLength > 0) {
for (var i = 0; i < listLength; i++) {
var row = getRowFromListData(listData, i);
var myfield = getValueFromListDataRow(row,'table_name','field_name');
if(myfield == 'my_value')
{
row = setValueOnListDataRow(row,"table_name","field_name_to_hide",'');
}
listData = setRowOnListData(listData, row, i);
}
}
return listData;
Cheers!
Hi
You will need to create a client script and add it to the populate/refresh event
var listData = getCurrentListData();
var listLength = listData.length;
if (listLength > 0) {
for (var i = 0; i < listLength; i++) {
var row = getRowFromListData(listData, i);
var myfield = getValueFromListDataRow(row,'table_name','field_name');
if(myfield == 'my_value')
{
row = setValueOnListDataRow(row,"table_name","field_name_to_hide",'');
}
listData = setRowOnListData(listData, row, i);
}
}
return listData;
Cheers!
Thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.