function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ronald BrakeboerRonald Brakeboer 

Display fields based on value

I want to do this:

If sales creates an order and chooses x "quantity" of the product "domains" 
display x "textfields" on the "Orderproduct details page" so we can insert the domain names.

So when Sales chooses 5 domains as quanity it should display 5 textfields to insert the domainnames.

Or when they chooses 3 domains as quantity display 3 textfields  Etc. Etc.

Can someone point me into the right direction?

 

Peter van der Meij | StepOrangePeter van der Meij | StepOrange

The only way to have dynamic pages is by using VisualForce.

Salesforce standard pagelayouts cannot be made dynamic in that way.
If Visualforce isn't your thing, I would go with 10 fields, and use validation to check if the first x fields are populated.

Another solution would be to use Visual Flow and create a "Wizard" to do this. That way you could have the process loop though the add domain page until the X is met.