A method of performing the test for chloride or sodium in the sweat of patients with cystic fibrosis of the pancreas is presented. It utilizes pilocarpine by iontophoresis and has the advantage of being both rapid and painless. Data are presented to show that the method is reliable.