Now, while this works alright for a simple resource (pop-up forms), it doesn't fill the form in case of regular resource (individual create / edit pages).
What should I do differently for it to work for regular resource?
Solution
1. Yea my bad. I was just adopting code from previous messages. You would indeed need to abstract your form fields and reuse them both in your resource and in the replicas form. For example:
public static function form(Form $form): Form{ return $form ->schema(static::getFormSchemaContent());}
public static function form(Form $form): Form{ return $form ->schema(static::getFormSchemaContent());}
public static function getFormSchemaContent(): array{ return [ TextInput::make('dummy'), Select::make('another_dummy') ];}
public static function getFormSchemaContent(): array{ return [ TextInput::make('dummy'), Select::make('another_dummy') ];}