Skip to Content Skip to Menu

auto action - set date in a field

  • systems
  • systems
  • OFFLINE
  • Posts: 25
  • Thanks: 6
  • Karma: 0
5 years 9 months ago #309789 by systems
auto action - set date in a field was created by systems
Hi all,
I would love to know what action I can use to set a date in a field based off the date of another field.
E.g Value of field_1 is 01/01/19. I wish to set Field_2 to a date that is equal to 01/01/19 + 28 days.

Also would like an action that will set a field with a word followed by current date/time. e.g. Value of field = complete 01/01/19 14:56.

Any help is always appreciated.
Thanks in advance.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
5 years 9 months ago #309800 by krileon
Replied by krileon on topic auto action - set date in a field

I would love to know what action I can use to set a date in a field based off the date of another field.

To adjust a fields value use a Field action.

E.g Value of field_1 is 01/01/19. I wish to set Field_2 to a date that is equal to 01/01/19 + 28 days.

To modify a date you'll need to use the Format Functions. You can enable them under the Parameters tab of your auto action. At the bottom of that tab is explanation and examples for each format function. For your specific usage you'll need to use the "time" format function.

Also would like an action that will set a field with a word followed by current date/time. e.g. Value of field = complete 01/01/19 14:56.

You don't need format functions for this one. You can just use the normal Field action with either the Prefix operator or Set operator then substitute in your date.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum