Hi folks,
First of all: Thanks for the great idea of a universal module. Everything works as intended. :-)
1. Pass id_value to API
Is it possible to pass this value to the API? So far I work it around by using the Blesta API inside my API to get the value by client_id. That's an apiception I would like to avoid.
2. Check if field is domain
I created a field "domain" inside my module. I see I can have it checked for "isEmpty" and "isUrl", but I need a way to check if it is a domain. I can write a function to check it, but I don't know where to place the check (I am not good at objective coding stuff, sadly).
Another idea was to place some javascript at the bottom of the order template and check the field id against a regex.
3. Custom "return messages"
Can I return an error message e.g. "domain is in use" when calling the API?
4. Add description for an input field
And the last one: Is it possible to add a description for an input field without modifying the PHP file? If not, it's fine, I would just go and modify it then. :-)
Cheers,
André