setting a default value on a date field

Questionssetting a default value on a date field
Lucy Hutchinson asked 8 hours ago

Hi,

I am new to grid4php.

I have a date field called mailing_date

A user will enter a date in here.

Once they enter this I would like to then set two other fields

twenty_one_date = mailing_date + 20 days

forty_two_date = mailing_date + 41 days

 

E.g.

Mailing date = 2026-02-26

twenty_one_date = 2026-03-18

forty_two_date = 2026-04-08

If possible I would ideally like these updating before the user gets to the fields on the form so they can if required change them – but the fields would automatically contain these values?

Is this possible and how please?

thanks

Lucy

 

 

1 Answers
Abu Ghufran Staff answered 3 hours ago

Hi,

You can refer this link.
https://www.gridphp.com/docs/column-settings-faqs.html?h=onblu#q-how-can-i-set-default-value-to-some-field

If you still face any issue, please share code for suggestion.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

12 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?