Disable only one option on field type radio

Disable only one option on field type radio

AgurtzaneAgurtzane Posts: 8Questions: 3Answers: 0

Hi!
I need disabled only one option in a field type: "radio". In the image, the option 'Warranty' must be disabled. How to make this?
Thanks

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    Is this specific to DataTables? I'm not clear how this relates to the table.

    Colin

  • AgurtzaneAgurtzane Posts: 8Questions: 3Answers: 0
    edited March 2020

    The image is part of the form opened by the Editor

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    I see. It can't be disabled, but you can remove it with field().update().

    Colin

  • AgurtzaneAgurtzane Posts: 8Questions: 3Answers: 0
    edited March 2020

    With field.update() the effect of hiding or showing the radio button is working perfectly, but does not take the value correctly. It seems that Editor does not identify the value of the item that is removed correctly, when it reappears.

  • AgurtzaneAgurtzane Posts: 8Questions: 3Answers: 0

    Hi!
    I have searched the name given by the Editor to that field and with the property disabled:
    $("#DTE_Field_myfieldname_2").prop('disabled', true);
    Thanks!

This discussion has been closed.