Reputation: 509
I'm trying to programmatically set the Due Date field of a custom activity. I want take the value of another date-time field that the users enters and add the value from an integer field. But it seems that I can only select a static value to add using the business rules as shown here:
Is there a way to do it using business rules? Or do I have to use a Javascript instead?
Upvotes: 0
Views: 1086
Reputation: 4385
This should be quite easy using PowerApps expression language; no need for PowerApps "Rules" (which are slated to be deprecated).
To your app:
Set the Label control's Text
property to:
DateAdd(
DatePicker.Selected.Value,
Value(TextBox.Text),
Days
)
Upvotes: 0
Reputation: 22846
You can use calculated field for these scenarios, but it is not a physical field to store. If you have to store the value, then Javascript or plugin or WF is better.
Business rules are limited in these situations.
Upvotes: 1