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"

1 Answer 1

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')
2
  • 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. Commented Mar 8, 2016 at 15:10
  • Can't seem to get this working - Arrgh so need to get this done :( Commented Mar 8, 2016 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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