Submit custom form data to more then one dataset

if ($w( “#dropdown” ).value === “a” )
{$w( “#dataseta” ).save()}
else
{$w( “#datasetb” ).save()}

the problem is that the form elements should be connected to any dataset…