The CreatorCon Call for Content is officially open! Get started here.

What is the best practice on date type field default value?

Rain Vaine
Kilo Sage

Hello experts,
Does anyone of you have any insights on the best practice for setting a default value in a field?

RainVaine_0-1717393191054.png

For example in this field, the script can be used to populate the field with value of 2100-01-01. But there is also a dynamic filter for that one:

RainVaine_1-1717393343051.png

Do you know of the best practice for this one?
Regards,
Vaine

1 ACCEPTED SOLUTION

Amitoj Wadhera
Kilo Sage

Hi @Rain Vaine ,

 

If you see both methods are making the use of script only to set the default value of Date field. So you can choose either depending upon the complexities of your requirement. 

 

If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.

 

Thanks,

Amitoj Wadhera

View solution in original post

2 REPLIES 2

Amitoj Wadhera
Kilo Sage

Hi @Rain Vaine ,

 

If you see both methods are making the use of script only to set the default value of Date field. So you can choose either depending upon the complexities of your requirement. 

 

If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.

 

Thanks,

Amitoj Wadhera

Jitendra Diwak1
Kilo Sage

Hi @Rain Vaine,

 

if you want to set the default value then you can define this in default value of any filed but if you want to set the field value of some condition then you will need to write the script and some logic as per the business requirement.

 

Please accept my solution if it works for you and thumps up.

 

Thanks

Jitendra

Please accept my solution if it works for and thumps up.