How to edit a data in a drop list field

i have two drop list … type is select with options …
if i choose data from first field (case status)it will show specific option in remarks
what i need is to make this remarks editable … any one can help??

As far as I know this is not possible and I can’t see the use case of this.
Alternatively you can create a custom doctype “Case Status” with two fields, Title (Data) and Remarks (Long Text)
Then in your primary doctype change Case Status to link field and make the remarks field fetch the remarks from the link field.
Enable fetch if empty.

I HAVE TRIED IT … BUT NEED SOME MODIFICATION ON MY CODE


THIS IS MAIN FORM


THIS IS NEW DOCTYPE FOR CASE STATUS


THIS IS THE CODE

Please read the docs
https://docs.erpnext.com/docs/v13/user/manual/en/customize-erpnext/articles/how-to-add-master-link-and-fetch-data-from-the-same

OK … this will fetch the data correctly but the data in remarks field will be read only i need to make it editable

Hi @GhadaEbrahim,

Is custom doctype to base doctype?
If base doctype then what is the name of base doctype?

If the base doctype field then you can remove the read-only option from Properly Setter.

Thank You!

its base to custom doctype …


its already not read only

Please use it scenario.

Thank You!

Ok.
Its base doctyoe (supplier) but a new field i have added (remark), i try to make a new properly setter read-only = 0 but not working

AFAIK, fieldnames should be snake_case. In your property setter change “Remark” to “remark”.
Remember that you should specify the fieldname and not the field label.

More details for please check it reference:

ok. i make it with small letter but still not working

Hi @Yamen_Zakhour,

Please check it.

Please set the Property Type Long Text → Check

Then reload and check it.
Hope your problem will solve.

Thank You!

Ihave tried it … its working but when i edit the data(remark) and click save it will save the old message.


after save

From field properies, enable “Fetch if empty”