Posts

Showing posts with the label startdate

Salesforce Fact #757 | Default start and end time based on the input date

Image
Another example for screen flow reactivity. Suppose we have an input date field and two date/time fields in a screen flow. Now, based on the date selected the start time would be defaulted to 10 AM and end time would be defaulted to 7 PM of the same day. Attached are the screenshots.

Salesforce Fact #721 | Default end date based on start date value in screen flow

Image
Another example for reactive screen components. Suppose, we have two date input fields: start date and end date. The end date should be by default, 30 days from start date and can be edited further by the user. We can set the default value using a formula resource and within the same screen. Attached are the screenshots.

Salesforce Fact #558 | Auto calculate end date LWC

Image
Suppose we have an input date field in LWC which is startdate and can be editable by user. Now, there is another field enddate which would be set to 30 days later the selected start date and it should be read only. We can implement the same using some JS logic. Attached are the screenshots.