isInputHidden(quote, fieldName)

Determines the visibility of an input in the Guided Selling UI. Return True to hide the input and False to let users see the input. Salesforce CPQ calls this method for each input.

Signature 

global Boolean isInputHidden(SObject quote, String fieldName)

Parameters 

quote

Type: SObject

The current quote.

fieldName

Type: String

The field tested to determine whether the method returns true or false.

Return Value 

Type: Boolean

Return True to hide the input and False to let users see the input.

Example 

This example hides an input called “Urgent Shipment” on Fridays.

1global Boolean isInputHidden(SObject quote, String input){
2		/**Hides an input called 'Urgent Shipment' on Fridays**/
3		return input == 'Urgent Shipment' && Datetime.now().format('F') == 5;
4		}