Checkbox Dropdown with blank output option

User-to-User discussion about the PhraseExpress macro programming.
Post Reply
AdventurousGoose
Posts: 13
Joined: 24 Feb 21, 06:33

Checkbox Dropdown with blank output option

Post by AdventurousGoose » 05 Nov 21, 16:23

Is there a way to make a checkbox dropdown with a blank output option that DOES NOT end up displaying the Description when checked?

For example, when "Other Letter" is checked and the letter "Z" is typed into the "Input other letter", the output is: Other LetterZ. If "A", "B" and "Other Letter" are checked and the letter "Z" is typed into the "Input other letter", the output is: A, B and Other LetterZ

I would like for the output to be "Z" for the first, and "A, B and Z" for the second. Is this possible?

Code: Select all

{#forminput -text Letters -type 5 -items A|B|C|D|E|F|Other Letter -vals A|B|C|D|E|F| -uncheckedvals |||||| -enum ,  -lastenum  and  -variablename Letters}{#forminput -text Input other letter -type 0 -def  -visgroup Other Letter -variablename Input other letter}
Edit: Also, I know that you can add in an input INTO the checkbox dropdown blank selection, but this results in a form having to pop up afterwards instead of it being directly inserted into the form that is currently being used. I want this input to be inside the current form and not have to open a new form.

Edit2: So the only way that I can find to work around this is to add in a blank character {#asc 32} into the blank output option and then adding a header with {#BKSP -variablename BackSpace} to the "Input other letter". This results in the output initially having an extra space, but then being removed and it coming out normally: A, B and Z

Edit3: I finally figured out a way to accomplish this by putting [any specific text] as the output option, and then using Process Output -> replace text with a copy of the output text [any specific text] in the Search string and the replacement string being left blank.

jptheronmd
Posts: 8
Joined: 03 Jan 22, 10:14

Post by jptheronmd » 21 Feb 22, 19:01

Hi I am trying to do what you did. Can you please explain Edit 3?

AdventurousGoose
Posts: 13
Joined: 24 Feb 21, 06:33

Post by AdventurousGoose » 21 Mar 22, 13:01

jptheronmd wrote:
21 Feb 22, 19:01
Hi I am trying to do what you did. Can you please explain Edit 3?
Here are two examples of it being done. The Replacement 1 is a simple replacement showing how to remove the unwanted checked option. Replacement 2 is showing how you remove the unwanted checked option and then how to add in a different variable that is only available if the unwanted filler checkbox is selected.
You do not have the required permissions to view the files attached to this post.

Post Reply