Conditional Field Data based on selections on previous fields

rss

Posted by Katerina - Sep 16 ’14 at 05:53

Hi Dmitry,

 

Is it possible to use Conditional Field Data based on selections from previous fields? My scenario is ass follows: I have 2 lookup fileds on my foms and I want when I make my selecetion from the first one, my options to the second one to be filtered so I can see only the ones related to my choice on the previous field.

Thanks

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 9 days
    #1 by Dmitry Kozlov Sep 17 ’14 at 05:13

    You might mean cascading drop-downs. Yes, you can implement such logic with help of Forms Designer and Cross-site Lookup. Please, get more information in my post:

    http://formsdesigner.blogspot.com/2013/07/cascading-drop-downs-with-cross-site.html

  • Katerina
    Member
    Member for: 7 years 7 months
    #2 by Katerina Sep 17 ’14 at 05:43

    Hi Dimitry,

     

    My question is not related on SP 2013. I am asking If can do that on SP 2010?

     

    Thanks

  • Katerina
    Member
    Member for: 7 years 7 months
    #3 by Katerina Sep 18 ’14 at 03:44

    Hi Dmitry,

     

    Appologies I explained that wrongly on my first post. What I really need to do is to default some choices based on other choices. This is the correct scenario: I have 2 or more look up fields and when I choose my opion on the first one I need the others to be preselected (get a default value) acording to the first selection. Or fill 2 other text fields with the default answers. To make it more clear let me give you an example. Lets say I have a field that holds different types of ropes and 2 other fields that have the sizes of the ropes. What I need is when I select the rope type to get the size of the rope set by default on the other fields. Is that possible using SP Forms?

     

    I hope all the above make sence.

     

    Thanks

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 9 days
    #4 by Dmitry Kozlov Sep 18 ’14 at 07:40

    [#3]: Yes, it makes sense.

    You can prepopulate fields based on other fields via JavaScript. Sample:

     
    
    // handle Field1 changing
    fd.field('Field1').change(function() {
    	var val = fd.field('Field1').value();
    	switch (val) {
    		case 1:
    			// populating Field2 based on Field 1 
    			fd.field('Field2').value('Default value 1');
    			break;
    		case 2:
    			// populating Field2 based on Field 1
    			fd.field('Field2').value('Default value 2');
    			break;
    	}
    });
    

    You can send the detailed requirements to [email protected] and we will estimate your task.

  • wernereegranad75
    Member
    Member for: 7 months 8 days
    #5 by wernereegranad75 Apr 22 ’21 at 01:45

    Hello Koslov, I think the one that you are trying to say here is cascading drop-downs - a great features and command that they added on latest version of it. It will help you choose a list of options without destroying the alignment of other commands. go now to sims mobile website and download this awesome simulation game where you can create your own characters. You can also customize your character and use them to explore the wonderful virtual world of the game.

     

    granny game for pc

  • Rahul1529
    Member
    Member for: 7 months 3 days
    #6 by Rahul1529 Apr 26 ’21 at 05:42

    React is a front-end JavaScript library for creating user interfaces or UI components that is open-source. [url=https://www.fita.in/react-js-training-chennai/]React JS Training in Chennai[/url] provides the best training in React JS Components, Frameworks, and its Architecture. It's used for managing the view layer for mobile apps and webs. [url=https://www.fita.in/react-js-training-chennai/]React JS Training in Chenna[/url] will help you to step into React JS as your profession.

  • Rahul1529
    Member
    Member for: 7 months 3 days
    #7 by Rahul1529 Apr 26 ’21 at 05:43

    React is a front-end JavaScript library for creating user interfaces or UI components that is open-source. React JS Training in Chennai provides the best training in React JS Components, Frameworks, and its Architecture. It's used for managing the view layer for mobile apps and webs. React JS course in Chennai will help you to step into React JS as your profession.

    <a href="https://www.fita.in/react-js-training-chennai/">React JS Training in Chennai</a> <a href="https://www.fita.in/react-js-training-chennai/">React JS Training in Chennai</a>

Displaying 1 to 7 of 7 messages