Skip to main content
Solved

FSM Mobile

  • December 2, 2024
  • 8 replies
  • 54 views

Pinmaya Kumar Singh
Do Gooder (Partner)
Forum|alt.badge.img+5

Hi All,

What is the syntax to hide fields based on uncheck of a check box in mobile. In short I want to hide 2 mobile fields when the other field checkbox is unchecked(unticked).

 

For example I want to hide part id and quantity when the From Part Needs check box is unchecked on the below mobile screen.

 

 

 

Thanks in Advance,

Pinmaya

Best answer by Chethana

Hi ​@Pinmaya Kumar Singh ,

You need to add this client script to the value change event of the ‘from_part_needs’ field in mobile.

View original

8 replies

Chethana
Sidekick (Employee)
Forum|alt.badge.img+5
  • Sidekick (Employee)
  • 55 replies
  • December 2, 2024

Hi ​@Pinmaya Kumar Singh ,

Update the below script with your actual field names, then use it in the value change event of your desired field.

var IsChecked = getControlValue("tableName","columnName");
// Replace the placeholders with the checkbox table's name and column name

if (IsChecked == 'N')
{
    setControlVisibility('tableName','columnName',false);
// Replace with the table name and column name of the field you want to hide
}

 


Pinmaya Kumar Singh
Do Gooder (Partner)
Forum|alt.badge.img+5

var IsChecked = getControlValue("custom","from_part_needs"); 
if (IsChecked == 'N') 
{     
setControlVisibility('part_usage','user_def16',false);

 ​@Chethana 

I have written the above script but its not working not showing on mobile

 


Chethana
Sidekick (Employee)
Forum|alt.badge.img+5
  • Sidekick (Employee)
  • 55 replies
  • December 3, 2024
Pinmaya Kumar Singh wrote:

var IsChecked = getControlValue("custom","from_part_needs"); 
if (IsChecked == 'N') 
{     
setControlVisibility('part_usage','user_def16',false);

 ​@Chethana 

I have written the above script but its not working not showing on mobile

 

Could you send a screenshot of the client script screen?


Pinmaya Kumar Singh
Do Gooder (Partner)
Forum|alt.badge.img+5

 

@Chethana 


Chethana
Sidekick (Employee)
Forum|alt.badge.img+5
  • Sidekick (Employee)
  • 55 replies
  • December 3, 2024
Pinmaya Kumar Singh wrote:

 

@Chethana 

I can see a syntax error. Add '}' at the end of the script.


Pinmaya Kumar Singh
Do Gooder (Partner)
Forum|alt.badge.img+5

var IsChecked = getControlValue("custom","from_part_needs");
if (IsChecked == 'N') 
{     
setControlVisibility('part_usage','user_def16',false);
}

 

Added it ,still once i uncheck this custom field    user_def16 is still visible

do i need to declare part_usage ?

@Chethana 


Chethana
Sidekick (Employee)
Forum|alt.badge.img+5
  • Sidekick (Employee)
  • 55 replies
  • Answer
  • December 3, 2024

Hi ​@Pinmaya Kumar Singh ,

You need to add this client script to the value change event of the ‘from_part_needs’ field in mobile.


Pinmaya Kumar Singh
Do Gooder (Partner)
Forum|alt.badge.img+5

Thanks so much  its working now ​@Chethana 


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