In a form named Payment I have fields with the word Note in their names; one for each month, e.g. JanNote, FebNote, MarNote, etc.
Using a function and stateless form I will have a Custom Action allowing the bulk change of a selected Month's Note field in many records. The stateless form has a dropdown field named StatelessMonth with a selection menu of the months, Jan, Feb, Mar, etc., and a single line field named StatelessNote.
Upon Submit I want a selected Note field in the Payment to be changed, e.g.:
QstringIDs = input.recIDlist;
for each r in QstringIDs
{
rec = Payment [ID == r];
rec.JanNote = input.StatelessNote;
}
I could accomplish this with a series of conditional "If" statements, but was wondering if there was a simpler way...
QUESTION:
If it possible to have the name of the field to be changed - dependent of the input of a field in the Stateless form?
For Example:
QstringIDs = input.recIDlist;
for each r in QstringIDs
{
rec = Payment [ID == r];
rec.
||value of StatelessMonth inserted here||Note = input.StatelessNote;
}