Images: Difference between revisions

Jump to navigation Jump to search
1,107 bytes added ,  22 April 2020
No edit summary
Line 79: Line 79:


{{Note|The zip should only contain images you want to replace or add, so if you use the sample zip, you need to remove all the default images, otherwise they will be used twice in the project, and the project will increase in the size, resulting to possible problems in synchronization, and increasing the time of synchronization.}}
{{Note|The zip should only contain images you want to replace or add, so if you use the sample zip, you need to remove all the default images, otherwise they will be used twice in the project, and the project will increase in the size, resulting to possible problems in synchronization, and increasing the time of synchronization.}}
=== Configurable on/off images on a form ===
When you add a parameter of the type "two options" to a [[Form]] (for example, Yes/No or On/Off), by default, it is displayed in the app as a switch:
[[File:Two options on a form.png]]
You can add custom project images and a new style to your project to display it as a checkbox instead:
[[File:Two options on a form-checkbox.png]]
Here's how:
# Select '''Design > Images''' from the '''Project''' menu.
# Add a new directory, for example "Checkbox".
# Add two images to the directory, with the names 0 and 1, then click '''Save'''.<br>[[File:Two images in the checkbox directory.png|600px]]
# Edit the [[form]] of an entity that has a suitable parameter of the type "two options", for example the Account entity.
# Click '''Edit Styles''' and add a new style.
# As '''ImageBasePath''' enter the directory to your checkbox images, then click '''Save & Close'''.<br>[[File:New checkbox style.png]]
# Add the parameter "Do not allow E-mails" to your form and on the Properties pane, set '''Style''' to "Checkbox".<br>[[File:Set style to checkbox.png|600px]]


== Entity images ==
== Entity images ==

Navigation menu