Client Script - OnChange data Field type

This is my json file ----->

This is my code i want to change if the type === Short text, Then answer field type is to be small text…

In Console this is printing no field type is available ? how to access and change it

How to do?

Client scripts are not capable of changing the data type in the database, which you wouldn’t want to be different with each response anyway. I would add a small text field and hide/show it based on your select field.

Thank you bro

Kindly look this at too