Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Regexp in forms?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Regexp in forms? (Read 4621 times)
yut.sin1301
Newbie
Posts: 5
Karma: 0
Regexp in forms?
«
on:
January 05, 2018, 02:35:41 pm »
Hi there, My name is Jeen
สมัครแทงบอลเงินสด
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.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Regexp in forms?