How to Make a HYPERLINK Field Clickable Inside a Word IF Field
Question details
The user wants to insert a functional, clickable HYPERLINK within the conditional result of an IF field in a Word document.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Displaying different text or links based on a legacy drop-down selection using conditional IF fields.
- Observed behavior
- The user needs the result branch of the IF field to output a working hyperlink rather than plain text, but standard text insertion causes the link to break or display incorrectly.
Ensure your document is saved and enable the display of field codes (typically toggled by pressing Alt+F9) to properly view, edit, and troubleshoot the nested field structures.
Use Field Code Shortcuts to Nest the HYPERLINK
Use the dedicated keyboard shortcut to create field braces instead of typing them manually. This ensures Word recognizes the nested HYPERLINK as an active, executable field.
When building complex conditional logic in Word, inserting standard text braces {} from your keyboard will not create a functional field. You must use the designated shortcut to generate the special field code brackets.
Press Ctrl+F9 to insert the outer field braces { } for your main IF statement.
Inside the braces, type your condition. For example: IF { REF bookmarkname } = "" "Invalid" ""
Position your cursor inside the final set of quotation marks (the true/false result branch) and press Ctrl+F9 again to insert a new set of nested field braces.
Type the hyperlink syntax inside the new nested braces: HYPERLINK "https://www.google.com" "Click here"
Verify your final code looks like this: { IF { REF bookmarkname } = "" "Invalid" "{ HYPERLINK "https://www.google.com" "Click here" }" }. Press F9 to update the fields, then press Alt+F9 to hide the codes and reveal the clickable link.

Manage Complex Field Codes with WPS Writer
WPS Writer fully supports complex field codes, including nested IF statements and functional hyperlinks, allowing you to build dynamic and highly automated documents effortlessly.
- 1. Open your document: Launch WPS Writer and open the document containing your conditional fields.
- 2. Access the Field options: Navigate to the 'Insert' tab on the top ribbon and select 'Field' to browse and manage available codes.
- 3. Use field shortcuts: Press Ctrl+F9 to accurately build nested IF and HYPERLINK structures exactly as you would in Microsoft Word.
- 4. Update the fields: Right-click the newly created field and select 'Update Field' from the context menu to activate your dynamic hyperlink.

Frequently Asked Questions
Why is my nested HYPERLINK field displaying as plain text?
This typically occurs if you typed the curly braces {} manually instead of using the field code shortcut (Ctrl+F9). Manually typed braces are treated as standard text, so the application does not recognize the enclosed formula as an executable command.
How do I view or hide field codes in my document?
You can toggle the visibility of field codes by pressing Alt+F9 on your keyboard. This shortcut allows you to easily switch between viewing the underlying logic code and seeing the final formatted output.
Can I use bookmark references inside the IF condition?
Yes, you can evaluate drop-down selections or text inputs by nesting a REF field inside the IF condition. Be sure to use Ctrl+F9 for the REF field braces as well, for example: { IF { REF DropdownBookmark } = "Option1" "Valid" "Invalid" }.




