Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request -> validate against function #6

Open
Madpeterz opened this issue Jul 7, 2024 · 0 comments
Open

feature request -> validate against function #6

Madpeterz opened this issue Jul 7, 2024 · 0 comments

Comments

@Madpeterz
Copy link

Madpeterz commented Jul 7, 2024

it would be nice if there was support to pass in a url that then when a item is added

data-ub-tag-vaildatewith="https://siteurl.com/tags"

is called with the following args

"text"=>"user inputed text"

that would accept the following reply in json

{
"status":bool,
"text":string
}

if the status is false, the new item is not added.
if the status is true then it checks the text value if its not the same it updates the entry

notes: you would not want to enable this on a public facing page and would also want access checks
on the server side but thats not the scripts job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant