• Resolved wsfrank

    (@wsfrank)


    We have two forms based on the lead entity which has a custom field that is an option set with three values. On one form we want to show all three values but on the other we want to filter one of them out and only show two of the values.
    Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author alexacrm

    (@alexacrm)

    Hi @wsfrank

    you’d be looking at some javascript to make it happen (same story as in CRM itself). We don’t do any filtering for the optionsets.

    The other option is to create a custom form with the fields bound by name. You can then provide any subset of options you want.

    {% form ...%}
    <form>
    <select name="foo_fieldname" ... <--- here
    {% endform %}
    

    HTH
    George

    Thread Starter wsfrank

    (@wsfrank)

    Thanks for the tip George. I have a bit of javascript on the form that limits the options, but that of course doesn’t translate into the plugin here.
    I didn’t see anything in the documentation about adding jscript to the plugin code. Can you point me to an example or resource that would get me started? Thanks

    Plugin Author alexacrm

    (@alexacrm)

    @wsfrank

    that wouldn’t be specific to our plugin. What I meant is that we emit something like <select name="foo_optionset"> html tag. You can add a javascript to that page (either directly or as an external file) and that script would locate this element and trim its content as required.

    HTH
    George

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter an Option Set’ is closed to new replies.