Page 1 of 1

undefined result for sharepoint field

Posted: 29 May 2013
by Bruno BICEP
hello, I'm a user of SPForm Designer since 3 months.

So I've encountered some issues using framework when I'm trying using this :



fd.field('myfield').control().value();

the result is undefined so that the field contains a value.

thx for reply

Re: undefined result for sharepoint field

Posted: 29 May 2013
by Dmitry Kozlov
To get the field you have to use its internal name, not the display name. Make sure that 'myfield' is an internal name of your field. If so, what type of this field: text, multiline text, lookup etc?

Re: undefined result for sharepoint field

Posted: 29 May 2013
by Bruno BICEP
thx for reply.

I'm using the internal name for the field.

The type of the filed is a dropdown list.

Re: undefined result for sharepoint field

Posted: 29 May 2013
by Dmitry Kozlov
Also, you can not use js-framework in a display form or for the fields that are read only. What type of form do you use? Could you publish screenshot of your form?

Re: undefined result for sharepoint field

Posted: 29 May 2013
by Bruno BICEP
Ok I see. I think my field is readonly. that's Why.

I gonna make some tests. I'll let you know.