OPNsense Forum

English Forums => Development and Code Review => Topic started by: yut.sin1301 on January 05, 2018, 02:35:41 pm

Title: Regexp in forms?
Post by: yut.sin1301 on January 05, 2018, 02:35:41 pm
Hi there, My name is Jeen สมัครแทงบอลเงินสด (http://www.ufa365.com/แทงบอลเงินสด/)

I have to build a form where a filter-list with regexp has to be inserted.

First I choosed a text field to enter a regexp:

                        <as type="TextField">
                                <default></default>
                                <Required>Y</Required>
                        </as>

The regexp looks like ^4001$
Saving works fine, but when I create a

                        <match type="ModelRelationField">
                                <Model>
                                        <template>
                                                <source>OPNsense.quagga.bgp</source>
                                                <items>aspaths.aspath</items>
                                                <display>name</display>
                                        </template>
                                </Model>
                                <ValidationMessage>Related item not found</ValidationMessage>
                                <Multiple>Y</Multiple>
                                <Required>N</Required>

.. the created regexp will not be listed.
If I only enter 4001 in the text field I can choose it in the dropdown list.

Problem is that I need the regexp style.