Community
Featues in Onify
What features does Onify include?
Posted by Robert Lundsten about 4 years ago
How do I run onifyElevatedApiRequest from a script task?
I am trying to run `onifyElevatedApiRequest` from a script task using users token but it does not work. Is it possible to run from a script task?
This is what I am trying to do:
```javascript
let onifyHeaders = {
'Content-Type': 'application/json',
'Authorization': environment.settings.authorization
}
var resourceOptions = {
url: `admin/resources/file?stream=false&path=${templatePath}`,
headers: onifyHeaders
}
let result = await environment.services.onifyElevatedApiRequest(resourceOptions);
```
Posted by Robert Lundsten over 2 years ago
Is it possible to develop own forms and processes?
Can we create and develop forms, dashboard and scripts (automations) ourself? Or are we required to hire consultants?
Posted by Robert Lundsten about 5 years ago
Open custom modal in a form without redirecting to it
I have tried to figureout howto open modal in a form in a such way as it works in workspace item listing.
Posted by Markus Kalske over 2 years ago
A prefix for a textField element
Hey,
I created a custom text element for the form with a fixed prefix that signals the user how the should approach the field in question. This could be a nifty feature to implement into the textField elements for example.
I was asked to share the solution, so here goes.
Not sure if this is the best way to do it, but at least it works:
<label for="computerName">VDI dekstop name
<span class="required-label">*</span>
</label>
<div class="input-group">
<span class="input-group-addon">VDI-</span>
<div class="form-group" ng-class ="{'has-error': customForm.computerName.$invalid && customFrom.computerName.$dirty}">
<input id="computerName" class="form-control" maxlength="11" pattern="^([a-zA-Z0-9-]{1,11})$" type="textField" value="" data-value="" required="" data-name="computerName" name="computerName" ng-init="initElementValue('computerName','')" ng-model="formData['computerName']" >
</div>
</div>
<div class="help-block">
<i>The maxinum length of the name is 11 characters. You can include letters (a-z), numbers or a dash ('-').</i>
</div>
The prefix can also be transformed into a "suffix" by placing the "<span class="input-group-addon">*your text here*</span>" block after the input tag.
Posted by Eetu Tarkamo almost 3 years ago
How do I add a color picker in a form?
I want to add a color picker in a form. How do I do that?
Posted by Robert Lundsten about 3 years ago