Skip to content
Discussion options

You must be logged in to vote

Yes, if the subfields should change dynamically based on the admin input, then follow https://backpackforlaravel.com/docs/6.x/crud-fields-javascript-api#11-when-a-repeatable-subfield-changes-disable-another-subfield

As an example:

crud.field('contractDetails').subfield('id_functionality').onChange(function(field) {
    crud.field('contractDetails').subfield('quantity').enable(field.value == 'nfc');
 });

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@blondie63
Comment options

@o15a3d4l11s2
Comment options

Answer selected by karandatwani92
@blondie63
Comment options

@blondie63
Comment options

@o15a3d4l11s2
Comment options

@blondie63
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants