Ask AI
Skip to main content

Set value of date field

Function: Set value of date field

This action allows you to automatically fill in or clear a specific Date Field on your application's form. It's useful for pre-populating dates, updating them based on other actions, or resetting them. The value you set will be stored for further use within the current process.

Input

  • UI element (Date Field): This is the specific date field component on your form where you want to set or clear a date. You must select an existing Date Field from your application.
  • Answer (Date): This is the date you want to place into the selected Date Field. If you provide a date, the field will be updated with that date. If you leave this input empty, the Date Field will be cleared of any existing value.

Output

(None)

Execution Flow

Real-Life Examples

Example 1: Pre-filling a "Start Date" field with today's date

  • Scenario: You have an application for project proposals, and you want the "Project Start Date" field to automatically show today's date when a new proposal is created.
  • Inputs:
    • UI element: Project Start Date (select the specific Date Field component from your form)
    • Answer: Today's Date (use a system variable or another action to get the current date)
  • Result: When a user opens the new project proposal form, the "Project Start Date" field will automatically display today's date.

Example 2: Clearing an "End Date" field if a project is cancelled

  • Scenario: In a project management application, if a project's status is changed to "Cancelled," you want to clear any previously entered "Project End Date."
  • Inputs:
    • UI element: Project End Date (select the specific Date Field component from your form)
    • Answer: (Leave this input empty)
  • Result: When the project status is updated to "Cancelled," the "Project End Date" field will become blank, indicating no end date.

Example 3: Setting a "Delivery Date" based on a calculated lead time

  • Scenario: For an order processing application, after a user selects a product, you want to automatically calculate and set the "Estimated Delivery Date" by adding 7 days to the current order date.
  • Inputs:
    • UI element: Estimated Delivery Date (select the specific Date Field component from your form)
    • Answer: [Order Date] + 7 Days (This would typically involve another action to calculate the future date, then passing that calculated date here)
  • Result: After the product selection and order date are confirmed, the "Estimated Delivery Date" field will automatically populate with the calculated date (e.g., if Order Date is Jan 1, Delivery Date becomes Jan 8).