0

I have a form that is specific for from a category in a dropdown select. When the user fills it out I would like the dropdown form to be pre-selected and greyed out or hidden so that the filed value is saved when submitted.

For example the form is for "fruits".

Name of r fruit - open text field What state it's from - open text field Dropdown with several choices - preselected to "fruits" from the other choices "vegetables" and "dry goods"

0

You can add script editor on the form and add below script into it.

Below script should run once SP.js is loaded.

SPUtility.GetSPField('fieldName').SetValue('FormName')
eg: SPUtility.GetSPField('DropDown').SetValue('Fruit')
  • Hello Ankitkumar , I am sorry I am not much of a coder - what other code do I need to add before it please? Thank you. – Mike Rooker Mar 8 '16 at 15:10
  • Can't seem to get this working - Arrgh so need to get this done :( – Mike Rooker Mar 8 '16 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.