Where should I put my permit number in the ICAO flight plan form?

Since there is no dedicated field for permit numbers in the ICAO flight plan form you should put it in the Remarks section at the bottom of the form. Remember that the Remarks section only accepts alphanumeric characters (A-Z, 0-9, and space). If you put any special characters in the Remarks field the flight plan will be rejected.