Hello,

I was wondering if someone could kindly help me set the granularity of the date field depending on the role of the user using form alter or preprocess?

For user with role A I need 'm d Y' and for user with role B I need 'Y m d'

Thank you very much in advance!

Comments

YK85’s picture

Would someone be able to kindly assist?

I require code that will change the granularity depending on role.

IF role A, use 'm d Y' order for select list. So [-Month] [-Day] [-Year]
IF role B, use 'Y m d' order for select list. So [-Year] [-Month] [-Day]

Thank you!

arlinsandbulte’s picture

Status: Active » Closed (won't fix)

Hi,
I am just indiscriminately closing all support requests with no activity for more than 1 year.
If you consider this to still be a valid issue / support request, feel free to re-open.
BUT,
if you are re-opening this issue, please provide specific details on how this issue can move forward.

Thanks.