Default value according to parent user

Hi

I need to insert a field´s value according on your Parent User.
I have tried this code but it doesn’t work:

public void Page_Load()
{
if (CurrentParentUserID() == “1” { MyField1.GetDefault = () => “xxx” };
}


Thank you in advance!!!
Best regards,
Nacho

SOLVED with CurrentValue

public void Page_Load()
{
if (CurrentParentUserID() == “1” { MyField1.CurrentValue = “xxx” };
}


In this post I found the solution:
https://discourse.hkvstore.com/t/extended-search-value-as-default-value-for-add/2360/1