I can help That is the correct solution. You need to make sure you get the rain water away from the foundation. You can pipe the downspouts to your field, as long as it is still on your property and the water your are diverting will soak into the field before it travels off of your land. You do not want to divert any water off of your property onto a neighbors property.
The 2012 International Residential Code (IRC) does not address drainage from gutters or downspouts other than saying the following:
R401.3 Drainage. Surface drainage shall be diverted to a storm sewer conveyance or other approved point of collection that does not create a hazard. Lots shall be graded to drain surface water away from foundation walls. The grade shall fall a minimum of 6 inches (152 mm) within the first 10 feet (3048 mm).
Exception: Where lot lines, walls, slopes or other physical barriers prohibit 6 inches (152 mm) of fall within 10 feet (3048 mm), drains or swales shall be constructed to ensure drainage away from the structure. Impervious surfaces within 10 feet (3048 mm) of the building foundation shall be sloped a minimum of 2 percent away from the building.
I would not think your local Building Control would require a permit for this type of work, but to be safe you just need to call them to make sure.
I hope this helps. Let me know if you have any more questions.