Is it possible to add a label to choices?

Discussion, questions and support.
User avatar
Posts: 3
Joined: Tue Jul 04, 2017 5:12 pm

Is it possible to add a label to choices?

PostPosted by BrittMalka » Tue Jul 04, 2017 5:29 pm

Hi, I'm new to FastKeys, and I'm not sure I can describe what I want... but I'll try.

I'm creating a macro that outputs a HTML form.

I want to be able to add certain list numbers into the form, like this: <input type="hidden" name="lists" value="1,2">

The values vary, and I would like to see a list of options, like 1 = General, 2 = Fiction, 3 = Nonfiction etc. I haven't been able to find anything about that. Can it be done?

User avatar
Posts: 100
Joined: Tue Nov 24, 2015 11:39 pm

Re: Is it possible to add a label to choices?

PostPosted by Tom » Tue Jul 04, 2017 8:06 pm

Right-click on a command field to select HTML format. Than you can paste any html code and FastKeys will run it.

If you just need to send plain text, you can define your selections using Input Selection Forms macro (More/Macros...). To add a label to choices, use a description followed by description separator. The default description separator is "::" and can be changed in Preferences/Text Expander. Example:
Code: Select all
Description1::Text1
Description2::Text2

User avatar
Posts: 3
Joined: Tue Jul 04, 2017 5:12 pm

Re: Is it possible to add a label to choices?

PostPosted by BrittMalka » Tue Jul 04, 2017 8:55 pm

I tried that. Or rather, I had it the other way round, I had

Code: Select all
Text1::Description1
Text 2::Description2


But now I tried your suggestion, but I couldn't make it work. It added both things to the form.

Yes, I only need text output.

This is what I have:

Type: Send

Code: Select all
<form method="post" target="_self" name="nvform" id="nvform" action="http://nvm.%SELECT_NVMDomain%.com/subscriber/optIn.php" autocomplete="off">
    <input type="hidden" name="idGroup" value="1">
    <input type="email" class="inputBox" name="email" value="">
    <input type="text" class="inputBox" id="name" name="name" value="">
   <input type="hidden" name="lists" value="%SELECT_NVMList%">
   <input id="customSubField%INPUT_NVMSubField%" name="customSubField%INPUT_NVMSubField%[]" type="hidden" value="^v">
   <input type="submit" class="nv_submit" id="nv_submit" value="Subscribe"></div>
</form>


When I double-click on NVMList, I have
Type: Checkbox
Selection:

Code: Select all
General::1
Fiction::2
Nonfiction::3
Unknown::6
Change::20


But the generated text gives me:

Code: Select all
<form method="post" target="_self" name="nvform" id="nvform" action="http://nvm.domain.com/subscriber/optIn.php" autocomplete="off">
    <input type="hidden" name="idGroup" value="1">
    <input type="email" class="inputBox" name="email" value="">
    <input type="text" class="inputBox" id="name" name="name" value="">
   <input type="hidden" name="lists" value="General::1,Fiction::2">
   <input id="customSubField44" name="customSubField44[]" type="hidden" value="testagain">
   <input type="submit" class="nv_submit" id="nv_submit" value="Subscribe"></div>
</form>

User avatar
Posts: 100
Joined: Tue Nov 24, 2015 11:39 pm

Re: Is it possible to add a label to choices?

PostPosted by Tom » Wed Jul 05, 2017 1:33 pm

Currently Radio and CheckBox controls do not support description labels. We may add this functionality in the next release. Can you use other control type instead?

User avatar
Posts: 3
Joined: Tue Jul 04, 2017 5:12 pm

Re: Is it possible to add a label to choices?

PostPosted by BrittMalka » Wed Jul 05, 2017 4:33 pm

Not for this one. But thanks for your reply.

Site Admin
User avatar
Posts: 642
Joined: Sat Mar 02, 2013 9:02 pm

Re: Is it possible to add a label to choices?

PostPosted by Marko » Wed Jul 05, 2017 10:47 pm

This feature will be added in the next release, thanks for pointing it out.

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests