Skip to main content
Question

Fsm Mobile - Hide field in List Screen


Forum|alt.badge.img+1

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
 

 

2 replies

Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • 1137 replies
  • March 17, 2025

Hi ​@pedropraz 

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!


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Partner)
  • 4 replies
  • March 18, 2025
Shneor Cheshin wrote:

Hi ​@pedropraz 

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 ​@Shneor Cheshin 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings