StratusForms icon indicating copy to clipboard operation
StratusForms copied to clipboard

Usage on StratusFormsGetLookupFieldValue

Open john-e-schneider opened this issue 6 years ago • 3 comments

I'm having trouble getting this to work. I want to auto-populate 2 other fields on the form based on DDL choice (Parent). I want to just create an onchange = "foo(this.value);" and build the foo() to force values from the unique lookup. I'm pretty sure this is the vehicle, but I guess I don't get the usage.

I'm guessing its something like this:

StratusFormsGetLookupFieldValue(listName, fieldName, fieldValue, returnField, getText)

But what is the return? I also dont understand getText.

john-e-schneider avatar Feb 27 '18 22:02 john-e-schneider

The format is this: $().StratusFormsGetLookupFieldValue(listName, fieldName, fieldValue, returnField, getText);

which returns a value. How can I get multiple values?

john-e-schneider avatar Mar 01 '18 22:03 john-e-schneider

Hey sorry for the delay in getting back to you on this John. I'm not quite sure I'm following you. Are you saying you essentially want to do a cascading relationship, but to two child fields?

mrackley avatar Apr 26 '18 17:04 mrackley

I have the same issue, so in SP when you add a lookup list you can return multiple values. So if you select a country, you can also bring back the capital, and currency (for example). Can you do the same in StratusForms? So if I have a list that has title, A, B, C. I want a select list that when the users selects a Title, it also sets fields with the values of A, B, C.

btroop202 avatar Aug 08 '18 11:08 btroop202