I added input feilds dynamically then how can i save data from those inputs in the defaults

By the looks of it, your custom node is not using the dedicated editableList

I would suggest you look at the source of any of the built in nodes that have an editableList for reference.

In short, you need to loop through the entries in oneditsave and store them as an object or array in the defaults. See here for more info: Node edit dialog : Node-RED