undefined result for sharepoint field

Discussions about Forms Designer for SharePoint 2010.
Locked
Bruno BICEP
Posts: 6
Joined: Mon Mar 11, 2013

29 May 2013

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

29 May 2013

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?

Bruno BICEP
Posts: 6
Joined: Mon Mar 11, 2013

29 May 2013

thx for reply.

I'm using the internal name for the field.

The type of the filed is a dropdown list.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

29 May 2013

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?

Bruno BICEP
Posts: 6
Joined: Mon Mar 11, 2013

29 May 2013

Ok I see. I think my field is readonly. that's Why.

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

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests