Insert a widget at a given index

Insert a input field to the Dynamic form, before
the specified index

#### Ready for Review 

#### Ready for Merge

#### Testing Instructions
 * This will be tested with #6406

#6406