cancel
Showing results for 
Search instead for 
Did you mean: 

Tick Readonly Custom Collection Checkbox field through Script

tejasjani
Advisor
Advisor
0 Kudos

Hi All,

As per the custom requirement from the client, through custom script, I need to tick Custom BizDoc's Collection's field (which is a read only checkbox).

At end of it all, I am unable to do so with all that I could try (Using Set method of extension field etc). It does not give any error but it does not even save it as a ticked checkbox upon saving the custom field.

I wondered if this could be because I have marked the checkbox (Boolean) as Readonly in the Extension attribute property. So I tried creating a similar checkbox (as input enabled), but still the result was same. So I have ruled of the reason of the issue as the readonly-ness of the checkbox. Correct me if I am wrong here.

Please suggest a way out.

Thanks in advance.

Tejas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Tejas,

For a script it doesn't matter whether a field is read-only or not. There must be a problem with your script in general or the syntax in particular.

Please share a snippet so that we can find out the exact mistake.

Thanks

Devesh

tejasjani
Advisor
Advisor
0 Kudos

Thanks.

The issue was with the way I was accessing the collection field which I had to set.

Resolved.

Answers (0)