Business Rule

yoli1
Tera Contributor

Hi Team i want to create a field in this form :

Capture.PNG

 

so i want it to behave as a Quarterly period 

 

 

var gdt = new GlideDateTime();
var mon = gdt.getMonth();
(mon == 1 || mon == 4 || mon == 7 || mon == 10);

 

 

how can i do it with a field and a business rule , ans is it possible to be something like this : "every x months", then you can set that to "every 3 months". Thanks!

3 REPLIES 3

jonsan09
Giga Sage
Giga Sage

Looks like you might have to add the 'conditional' and 'condition' fields to the form, then add a function to check the month and return true if its matches your criteria.
2023-08-30 13_50_38-Window.png

yoli1
Tera Contributor

Hi @jonsan09 Thanks! but can i implement this with like a user-friendly solution something like creating a new field that do the same behaviour something like every x months and the user can then choose the number of months ?

You could try creating a Record Producer for the workflow schedule table. You'd have to setup some variables to select frequency based on day, month,etc. You'd then have to script some logic to handle that when populating the condition on the record. Might be more work than its worth