-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
Is your feature request related to a problem? Please describe.
Having the ability to compare two string fields on the screen to then make an action would be nice if those comparisons where a function that return true/false. Right now I have to code each comparison, example:
selectedValue = $("h3:contains('Request Phase')").closest('tr').find('select').val();
requestOpen = $("h3:contains('RequestOpen')").closest('tr').find('select').val();
if (((selectedValue == 'Approved') || (selectedValue == 'Denied') || (selectedValue == 'Canceled'))) {
Lozzi.Fields.disable("Request Phase");
Or checking to see of a downdown has changed:
//on change of dropdown of Is this Critical we will call this
$("h3:contains('Is this Critical')").closest('tr').find('select').change(function () {
showHideRows();
});
Describe the solution you'd like
Well, this is a lot harder. In general, one compares two values and based on the results an action needs to happen. some examples might be:
- If a value is Yes, then display a field, else no.
- if a value changes and the new value is xx, then display another field (or make it mandatory). Yeah, that's another feature.
- if two values are the same or different
- Comparing dates, or numbers might be helpful. Not certain
Describe alternatives you've considered
Code it as I had shown above.
Additional context
Reactions are currently unavailable