Hi all,
I'm trying to write a simple froms page using the new forms objects. I've only worked in jquery on the classic in the past, so am just trying to make something basic.
- The idea is to populate a table with the "name" colume from a data query. I can do that OK.
- Oncompletion of the lookup, I want add a class to each input field to hide the value.
- Have button to select a random number.
- After the button has been clicked, the system cycles through each value, adding and removing classes to change its colour, as it pretends to slowly choose a value.
- After about 10 seconds of this tension-building charade, the randomly selected value is revealed.
I can't get the basics to work. Selecting a field and turning it a colour doesn't work for me. I can change the colour of a regular text field value though:
alert('a'); LFForm.onLookupDone(function () { let fld = LFForm.findFieldsByFieldId(4)[0]; LFForm.addCSSClasses(fld, "input-highlight"); }, {lookupRuleId: 1});
Also, the "alert" function doesn't seem to work n the new forms designer. I used to rely on alerts when debugging. Is there another way now?