Assuming your URIs are also URLs then you can probably use this:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url

I am not aware of client-side validation for URIs in our own code. For server-side validation, use spif:isValidURI(?x)

HTH
Holger


On 23/07/2018 18:20, Rob Atkinson wrote:
Hi

there are a lot of places TQ accepts URI values in form input fields. what is the best way to do this?

e.g.

in teamwork:DefaultCreateProjectPage

<swa:LabeledElement arg:label="Default namespace">
                <input class="form-control teamwork-default-create-project-page-namespace-input"
                       id="default-namespace-text"
                       name="defaultNamespace"
                       type="text"
                       value="{= teamwork:defaultDefaultNamespaceForProjectType(?projectType) }"/>
            </swa:LabeledElement>


I can find the explanation for swa:LabelledElement in the code - but no mention of it in the SWA docs or TBC help

I can chase down the CSS teamwork-default-create-project-page-namespace-input and clone all the CSS etc...

but I wonder if there is already some default element for specifying a text field with a URI syntax check I can re-use?



--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "TopBraid 
Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to