Extract optional values when creating form