Forum Discussion

FICO's avatar
FICO
Community Manager
17 years ago

Valueholder & Assignment Question

Valueholder & Assignment Question

Hi,

  I am working on a requirement wherein on the RMA screen, depending upon one of the options chosen (from a list of values), a value has to be assigned to another field and displayed on the screen.

  For eg: if the user chooses "Yes" from the list of options available, in the other text box which is available, it should come up as "Enabled".

  I was unable to find out the mechanism to accomplish this. Using value holders didnt permit me to assign any strings explicitly, only comparison was possible.

  Can you let me know on how this can be accomplished, kindly treat this as urgent.

Regards,

Arun

2 Replies

  • FICO's avatar
    FICO
    Community Manager

    Hi,

    Just to make sure I understand what you are trying to accomplish: Do you want a text field, or just a label/printout of the value "Enabled"?

    If all you need is to write the next value "Enabled" to screen if a user selects "Yes", you have a few options. One is to use a conditional block (the blue angle brackets) in your display version, where the test condition is something like "yesNoVH" = "Yes". Another option is to make your select box (which contains the "Yes"-option) a template list provider, and create a template for each of the options you need. In the display version of your "Yes"-template, you could have a text that said "Enabled". 

    If what you want is a text field, i.e. something the user can modify, you probably need something more here. But if this is the case, I would like to ask why you both need a "Yes" (which you already have from the user), and an "enabled"-value. Wouldn't one of them be enough? 

    Regards, 

    Jostein 

  • FICO's avatar
    FICO
    Community Manager

    Hi Jostein,

       Thanks for the response. You are right, I was more looking at a mechanism of a label. I had tried out condition block earlier but was running into some issues, so I had left that option. Today again I revisited that, and with help from a colleague was able to get this condition block working and my requirement as well.

      Thanks for your suggestion Jostein.

    Regards,

    Arun