Topic
  • 3 replies
  • Latest Post - ‏2013-12-12T15:32:41Z by RISHIVEMAL
RISHIVEMAL
RISHIVEMAL
8 Posts

Pinned topic Disable Limit to List through hook

‏2013-12-05T11:06:48Z |

Hi,

I need to change the the field property to allow free form type in based on the parent choice list. 

For ex.,

unless($choiceList eq "A") {

push (@choices, $resultSetObj->GetColumnValue(1));

} else {

Disable limit to list

}

Please help achieving this requirement.

Thanks in advance

Vimal Raj

 

  • pdubovitsky
    pdubovitsky
    376 Posts
    ACCEPTED ANSWER

    Re: Disable Limit to List through hook

    ‏2013-12-05T19:20:37Z  

    You can do it in opposite way: do not limit field value to list, but employ a validation hook that would check entered value based on the "parent choice list"

    Pavel

  • Pravinjayaram
    Pravinjayaram
    29 Posts
    ACCEPTED ANSWER

    Re: Disable Limit to List through hook

    ‏2013-12-07T14:36:25Z  

    There is no way to disable to limit to list using code. It is not possible. But as pdubovitsky said, you can add validation. 

  • pdubovitsky
    pdubovitsky
    376 Posts

    Re: Disable Limit to List through hook

    ‏2013-12-05T19:20:37Z  

    You can do it in opposite way: do not limit field value to list, but employ a validation hook that would check entered value based on the "parent choice list"

    Pavel

  • Pravinjayaram
    Pravinjayaram
    29 Posts

    Re: Disable Limit to List through hook

    ‏2013-12-07T14:36:25Z  

    There is no way to disable to limit to list using code. It is not possible. But as pdubovitsky said, you can add validation. 

  • RISHIVEMAL
    RISHIVEMAL
    8 Posts

    Re: Disable Limit to List through hook

    ‏2013-12-12T15:32:41Z  

    Thanks pdubovitsky and Pravinjayaram for your reply. I have implemented the logic and it worked. 

     

    Thanks,

    Vimal