OctoPrint and IDEX printer

I figured it out!

This printer is a Dual X Carriage and this particular setting isn't stored in the EEPROM.

Adding this to the slicer ( My case Cura ) Printer startup G-Code.
M605 S1 ;Set Printer Mode to DUAL_X_CARRIAGE

Next issue I ran into was the second extruder wasn't lined up exactly in X-Y-Z so adding This to the printer start up G-Code after the above allowed me to my prints just right.
M218 T1 X356.40 Y2.20 Z0.000 ; Set T1 Offset
This seems to be the starting position of the second extruder.

I worked hard to get the Z between the heads to be very close.

Now I am able to print using two colors!

But I hope this helps someone else!

Next steps are to test duplication and mirror modes.

Thank you for this info. I just got a Snapmaker J1s IDEX printer, and was having the same issue: if I printed from the gcode stored on the printer itself, it worked fine. Trying to print from Octoprint had the same issue you describe: the two heads wouldn't get out of each others way. I added the M605 S1 command to the Octoprint 'Gcode before each print' in the printer's profile. Now, it works as it should!
The J1s, BTW, has a really nice automated procedure for calibrating the offset between the 2 print heads. It's a real PIA to do it by hand.